/external/jetty/src/java/org/eclipse/jetty/util/ajax/ |
JSONCollectionConvertor.java | 27 public class JSONCollectionConvertor implements JSON.Convertor 29 public void toJSON(Object obj, JSON.Output out)
|
JSONEnumConvertor.java | 25 import org.eclipse.jetty.util.ajax.JSON.Output; 31 * Convert an {@link Enum} to JSON. 32 * If fromJSON is true in the constructor, the JSON generated will 38 public class JSONEnumConvertor implements JSON.Convertor
|
/external/v8/test/mjsunit/ |
json2.js | 30 // Test JSON.stringify on the global object. 32 assertTrue(JSON.stringify(this).indexOf('"a":12345') > 0); 33 assertTrue(JSON.stringify(this, null, 0).indexOf('"a":12345') > 0); 35 // Test JSON.stringify of array in dictionary mode. 37 assertEquals(expected, JSON.stringify(input)); 38 assertEquals(expected, JSON.stringify(input, (key, value) => value)); 39 assertEquals(JSON.stringify(input, null, "="), 40 JSON.stringify(input, (key, value) => value, "=")); 111 JSON.stringify({ get toJSON() { throw "error"; } }); 123 assertThrows(function() { JSON.stringify(tojson_ex); }) [all...] |
mirror-unresolved-function.js | 45 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 47 JSON.stringify(serializer.serializeReferencedObjects())); 68 // Parse JSON representation of unresolved functions and check. 69 var fromJSON = eval('(' + json + ')'); 70 assertEquals('function', fromJSON.type, 'Unexpected mirror type in JSON'); 71 assertEquals('Function', fromJSON.className, 'Unexpected mirror class name in JSON'); 72 assertEquals(mirror.constructorFunction().handle(), fromJSON.constructorFunction.ref, 'Unexpected constructor function handle in JSON'); 73 assertEquals('undefined', refs.lookup(fromJSON.constructorFunction.ref).type, 'Unexpected constructor function type in JSON'); 74 assertEquals(mirror.protoObject().handle(), fromJSON.protoObject.ref, 'Unexpected proto object handle in JSON'); [all...] |
json-replacer-number-wrapper-tostring.js | 5 // http://ecma-international.org/ecma-262/6.0/#sec-json.stringify 19 JSON.stringify('', [num]);
|
/external/v8/test/mjsunit/regress/ |
regress-361025.js | 9 JSON.parse('{"a":2600753951}');
|
regress-472504.js | 7 shouldThrow(JSON.parse('{"0":1}'));
|
regress-crbug-423687.js | 7 var json = '{"a":{"c":2.1,"d":0},"b":{"c":7,"1024":8}}'; variable 8 var data = JSON.parse(json);
|
regress-crbug-595738.js | 7 assertEquals("1", JSON.stringify(x));
|
regress-json-parse-index.js | 5 var o = JSON.parse('{"\\u0030":100}');
|
regress-2374.js | 30 var obj = JSON.parse(msg); 31 var obj2 = JSON.parse(msg); 33 assertEquals(JSON.stringify(obj), JSON.stringify(obj2)); 34 assertEquals(JSON.stringify(obj, null, 0), JSON.stringify(obj2));
|
regress-json-stringify-gc.js | 38 json1 = JSON.stringify(a); 39 json2 = JSON.stringify(a); 40 assertTrue(json1 == json2, "GC caused JSON.stringify to fail."); 42 // Check that the slow path of JSON.stringify works correctly wrt GC. 45 assertEquals('"' + s + '"', JSON.stringify(s, null, 0)); 50 assertEquals('"' + s + '"', JSON.stringify(s, null, 0));
|
regress-369450.js | 10 var json = JSON.stringify(v); variable 11 assertEquals("[]", json);
|
/libcore/json/src/main/java/org/json/ |
JSONObject.java | 17 package org.json; 26 // Note: this class was written without inspecting the non-free org.json sourcecode. 92 * <li>are included in the encoded JSON string. 160 throw JSON.typeMismatch(object, "JSONObject"); 165 * Creates a new {@code JSONObject} with name/value mappings from the JSON 168 * @param json a JSON-encoded string containing an object. 172 public JSONObject(String json) throws JSONException { 173 this(new JSONTokener(json)); 218 nameValuePairs.put(checkName(name), JSON.checkDouble(value)) [all...] |
/external/v8/test/webkit/resources/ |
json2-es5-compat.js | 6 http://www.JSON.org/json2.js 13 See http://www.JSON.org/js.html 15 This file creates a global JSON object containing two methods: stringify 18 JSON.stringify(value, replacer, space) 32 This method produces a JSON text from a JavaScript value. 69 Values that do not have JSON representations, such as undefined or 72 a replacer function to replace those with JSON values. 73 JSON.stringify(undefined) returns undefined. 85 text = JSON.stringify(['e', {pluribus: 'unum'}]); 89 text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t') [all...] |
/external/v8/test/mjsunit/es6/ |
mirror-symbols.js | 9 // Create mirror and JSON representation. 12 var json = JSON.stringify(serializer.serializeValue(mirror)); 28 // Parse JSON representation and check. 29 var fromJSON = eval('(' + json + ')');
|
proxies-json.js | 31 // JSON.stringify 36 assertEquals(expected, JSON.stringify(object)); 38 assertEquals(expected, JSON.stringify(object, (key, value) => value)); 40 assertEquals(JSON.stringify(object, null, "="), 41 JSON.stringify(object, (key, value) => value, "=")); 100 assertEquals(expected2, JSON.stringify(parent2)); 102 assertEquals(expected2, JSON.stringify(parent2, undefined, 0)); 211 JSON.stringify(parent7)); 213 JSON.stringify(parent7)); 237 assertEquals(undefined, JSON.stringify(proxy)) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/ |
json.js | 16 * @fileoverview JSON utility functions. 20 goog.provide('goog.json'); 21 goog.provide('goog.json.Serializer'); 25 * Tests if a string is an invalid JSON string. This only ensures that we are 28 * @return {boolean} True if the input is a valid JSON string. 31 goog.json.isValid_ = function(s) { 37 // This is taken from http://www.json.org/json2.js which is released to the 44 // e.g. http://www.json.org/java/org/json/JSONObject.java 47 // against regular expressions that look for non-JSON patterns. We ar [all...] |
/external/chromium-trace/catapult/third_party/vinn/vinn/test_data/ |
console_time_test.js | 9 throw new Error('Assertion error: ' + JSON.stringify(first) + 10 ' !== ' + JSON.stringify(second));
|
/external/libweave/src/test/ |
unittest_utils.cc | 7 #include <base/json/json_reader.h> 8 #include <base/json/json_writer.h> 14 std::unique_ptr<base::Value> CreateValue(const std::string& json) { 15 std::string json2(json); 24 CHECK(value) << "Failed to load JSON: " << message << ", " << json; local 29 std::string json; local 31 value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json); 32 return json; 36 const std::string& json) { [all...] |
/external/chromium-trace/catapult/third_party/gsutil/gslib/commands/ |
mv.py | 110 gs_api_support=[ApiSelector.XML, ApiSelector.JSON], 111 gs_default_api=ApiSelector.JSON,
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/guide/ |
PostExample.java | 11 public static final MediaType JSON 12 = MediaType.parse("application/json; charset=utf-8"); 16 String post(String url, String json) throws IOException { 17 RequestBody body = RequestBody.create(JSON, json); 40 String json = example.bowlingJson("Jesse", "Jake"); local 41 String response = example.post("http://www.roundsapp.com/post", json);
|
/external/webrtc/webrtc/examples/objc/AppRTCDemo/ |
RTCMediaConstraints+JSON.m | 11 #import "RTCMediaConstraints+JSON.h" 17 @implementation RTCMediaConstraints (JSON) 29 // TODO(tkchin): figure out json formats for optional constraints.
|
RTCSessionDescription+JSON.m | 11 #import "RTCSessionDescription+JSON.h" 16 @implementation RTCSessionDescription (JSON) 26 NSDictionary *json = @{ 30 return [NSJSONSerialization dataWithJSONObject:json options:0 error:nil];
|
/prebuilts/gdb/darwin-x86/lib/python2.7/json/ |
__init__.py | 1 r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of 5 :mod:`json` exposes an API familiar to users of the standard library 7 version of the :mod:`json` library contained in Python 2.6, but maintains 14 >>> import json 15 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) 17 >>> print json.dumps("\"foo\bar") 19 >>> print json.dumps(u'\u1234') 21 >>> print json.dumps('\\') 23 >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True [all...] |