HomeSort by relevance Sort by last modified time
    Searched refs:toJSON (Results 1 - 25 of 66) sorted by null

1 2 3

  /external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
JsonSerializable.java 23 public JSONObject toJSON() throws JSONException;
  /external/v8/test/mjsunit/
json.js 28 // Date toJSON
29 assertEquals("1970-01-01T00:00:00.000Z", new Date(0).toJSON());
30 assertEquals("1979-01-11T08:00:00.000Z", new Date("1979-01-11 08:00 GMT").toJSON());
31 assertEquals("2005-05-05T05:05:05.000Z", new Date("2005-05-05 05:05:05 GMT").toJSON());
34 assertEquals("foo", n1.toJSON());
37 assertThrows(function () { n2.toJSON(); }, TypeError);
44 assertEquals(null, n4.toJSON());
49 //Test Date.prototype.toJSON as generic function.
50 var d1 = {toJSON: Date.prototype.toJSON,
    [all...]
json2.js 81 // Test toJSON function.
82 var tojson_obj = { toJSON: function() {
90 // Test that we don't recursively look for the toJSON function.
92 tojson_proto_obj.__proto__ = { toJSON: function() {
98 // Test toJSON produced by a getter.
99 var tojson_via_getter = { get toJSON() {
109 JSON.stringify({ get toJSON() { throw "error"; } });
112 // Test toJSON with key.
113 tojson_obj = { toJSON: function(key) { return key + key; } };
119 // Test toJSON with exception
    [all...]
debug-step-into-json.js 28 o.toJSON = toJsonCallback;
undeletable-functions.js 56 "toUTCString", "getYear", "setYear", "toISOString", "toJSON"];
96 "toString", "valueOf", "toJSON"];
101 "toPrecision", "toJSON"];
113 "toJSON", "toString", "valueOf"];
  /external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/static/
jquery.json-2.2.min.js 2 (function($){$.toJSON=function(o)
9 {if(typeof o.toJSON=="function")
10 return $.toJSON(o.toJSON());if(o.constructor===Date)
15 ret.push($.toJSON(o[i])||"null");return"["+ret.join(",")+"]";}
20 continue;var val=$.toJSON(o[k]);pairs.push(name+":"+val);}
  /external/chromium-trace/catapult/third_party/mapreduce/mapreduce/static/
jquery.json-2.2.min.js 2 (function($){$.toJSON=function(o)
9 {if(typeof o.toJSON=="function")
10 return $.toJSON(o.toJSON());if(o.constructor===Date)
15 ret.push($.toJSON(o[i])||"null");return"["+ret.join(",")+"]";}
20 continue;var val=$.toJSON(o[k]);pairs.push(name+":"+val);}
  /external/chromium-trace/catapult/third_party/pipeline/pipeline/ui/
jquery.json.min.js 2 (function($){$.toJSON=function(o)
9 {if(typeof o.toJSON=="function")
10 return $.toJSON(o.toJSON());if(o.constructor===Date)
15 ret.push($.toJSON(o[i])||"null");return"["+ret.join(",")+"]";}
20 continue;var val=$.toJSON(o[k]);pairs.push(name+":"+val);}
  /external/skia/tools/debugger/
SkDrawCommand.h 103 virtual Json::Value toJSON(UrlDataManager& urlDataManager) const;
138 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
152 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
167 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
181 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
201 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
220 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
235 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
254 Json::Value toJSON(UrlDataManager& urlDataManager) const override;
274 Json::Value toJSON(UrlDataManager& urlDataManager) const override
    [all...]
SkDrawCommand.cpp 223 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
232 Json::Value result = this->toJSON(urlDataManager);
249 SkDEBUGCODE(bool parsingSuccessful = )reader.parse(at->toJson().c_str(),
    [all...]
SkDebugCanvas.h 154 Json::Value toJSON(UrlDataManager& urlDataManager, int n, SkCanvas*);
  /external/jetty/src/java/org/eclipse/jetty/util/ajax/
JSONCollectionConvertor.java 29 public void toJSON(Object obj, JSON.Output out)
JSONPojoConvertorFactory.java 60 public void toJSON(Object obj, Output out)
79 convertor.toJSON(obj, out);
JSONEnumConvertor.java 81 public void toJSON(Object obj, Output out)
JSONDateConvertor.java 94 public void toJSON(Object obj, Output out)
JSONObjectConvertor.java 72 public void toJSON(Object obj, Output out)
JSON.java 242 public String toJSON(Object object)
373 public void toJSON(Output out)
375 convertor.toJSON(object,out);
389 converter.toJSON(out);
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
TelephonyEvents.java 52 public JSONObject toJSON() throws JSONException {
101 public JSONObject toJSON() throws JSONException {
143 public JSONObject toJSON() throws JSONException {
187 public JSONObject toJSON() throws JSONException {
232 public JSONObject toJSON() throws JSONException {
294 public JSONObject toJSON() throws JSONException {
314 public JSONObject toJSON() throws JSONException {
342 public JSONObject toJSON() throws JSONException {
  /external/v8/test/webkit/resources/
JSON-stringify.js 111 return jsonObject.stringify({toJSON: Date.prototype.toJSON});
115 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return "custom toISOString"; }});
118 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ return {}; }});
122 return jsonObject.stringify({toJSON: Date.prototype.toJSON, toISOString: function(){ throw "An exception"; }});
133 d.toJSON = undefined;
403 preSelf2: {toJSON:function(){cycleTracker+="preSelf2,"; return "preSelf2"}}
    [all...]
json2-es5-compat.js 34 When an object value is found, if the object contains a toJSON
35 method, its toJSON method will be called and the result will be
36 stringified. A toJSON method does not serialize: it returns the
38 or undefined if nothing should be serialized. The toJSON method
44 Date.prototype.toJSON = function (key) {
159 test, toJSON, toString, valueOf
175 if (typeof Date.prototype.toJSON !== 'function') {
177 Date.prototype.toJSON = function (key) {
234 // If the value has a toJSON method, call it to obtain a replacement value.
237 typeof value.toJSON === 'function')
    [all...]
  /external/v8/src/js/
json.js 153 var toJSON = value.toJSON;
154 if (IS_CALLABLE(toJSON)) {
155 value = %_Call(toJSON, value, key);
251 // Date.toJSON
253 // 20.3.4.37 Date.prototype.toJSON ( key )
265 "toJSON", DateToJSON
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
AttachmentComposeView.java 48 attachStr = attachment.toJSON().toString(2);
  /external/skia/tools/skiaserve/
Response.cpp 84 Json::Value root = debugCanvas->toJSON(*urlDataManager, n, canvas);
  /external/v8/test/mjsunit/regress/
regress-crbug-554946.js 7 toJSON: function() { array.length = 1; return "funky"; }
  /external/v8/test/mjsunit/harmony/
proxies-json.js 148 // Proxy that provides a toJSON function that uses this.
156 return ['toJSON', 'z'][Symbol.iterator]();
170 // Proxy that provides a toJSON function that returns undefined.
177 return ['toJSON'][Symbol.iterator]();
242 assertEquals(["get", target, "toJSON", proxy], log[0]);
257 ["get", target, "toJSON", proxy], log[0]);
277 assertEquals(["get", target, "toJSON", proxy], log[0]);

Completed in 1975 milliseconds

1 2 3