/external/v8/test/mjsunit/ |
mirror-null.js | 31 // Create mirror and JSON representation. 34 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 48 // Parse JSON representation and check. 49 var fromJSON = eval('(' + json + ')');
|
mirror-undefined.js | 31 // Create mirror and JSON representation. 34 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 48 // Parse JSON representation and check. 49 var fromJSON = eval('(' + json + ')');
|
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...] |
/external/v8/test/mjsunit/regress/ |
regress-crbug-84186.js | 28 // Test that the expected string is parsed in the json parser when the length 32 var json = '{"key":"'; variable 39 json = json + key + '"}'; 40 var out = JSON.parse(json);
|
/libcore/json/src/main/java/org/json/ |
JSONException.java | 17 package org.json; 19 // Note: this class was written without inspecting the non-free org.json sourcecode. 22 * Thrown to indicate a problem with the JSON API. Such problems include: 26 * <li>Use of numeric types not available to JSON, such as {@link
|
JSON.java | 17 package org.json; 19 class JSON { 21 * Returns the input if it is a JSON-permissible value; throws otherwise.
|
/external/chromium/chrome/browser/net/ |
net_log_logger.cc | 10 #include "base/json/json_writer.h" 32 // Don't pretty print, so each JSON value occupies a single line, with no 36 std::string json; local 37 base::JSONWriter::Write(value.get(), false, &json); 39 VLOG(1) << json; 41 fprintf(file_.get(), "%s\n", json.c_str());
|
/external/chromium/chrome/browser/ |
dom_operation_notification_details.h | 15 DomOperationNotificationDetails(const std::string& json, int automation_id) 16 : json_(json), automation_id_(automation_id) { } 20 std::string json() const { return json_; } function in class:DomOperationNotificationDetails
|
/cts/libs/json/src/com/android/json/stream/ |
JsonScope.java | 17 package com.android.json.stream; 20 * Lexical scoping elements within a JSON reader or writer.
|
JsonToken.java | 17 package com.android.json.stream; 20 * A structure, name or value type in a JSON-encoded string. 25 * The opening of a JSON array. Written using {@link JsonWriter#beginObject} 31 * The closing of a JSON array. Written using {@link JsonWriter#endArray} 37 * The opening of a JSON object. Written using {@link JsonWriter#beginObject} 43 * The closing of a JSON object. Written using {@link JsonWriter#endObject} 49 * A JSON property name. Within objects, tokens alternate between names and 56 * A JSON string. 61 * A JSON number represented in this API by a Java {@code double}, {@code 67 * A JSON {@code true} or {@code false} [all...] |
/external/chromium/chrome/browser/extensions/ |
chrome_app_api_browsertest.cc | 8 #include "base/json/json_reader.h" 58 L" JSON.stringify(window.chrome.app.isInstalled));"; 69 L" JSON.stringify(window.chrome.app.getDetails()));"; 160 L" JSON.stringify(chrome.app.getDetailsForFrame(frames[0])))"; 161 std::string json; local 165 L"", get_details_for_frame, &json)); 169 base::JSONReader::Read(json, false /* allow trailing comma */)));
|
extension_devtools_bridge.cc | 7 #include "base/json/json_writer.h" 42 std::string json; local 43 base::JSONWriter::Write(&message, false, &json); 44 return json; 103 std::string json("[{}]"); 105 on_tab_close_event_name_, json, profile_, GURL()); 129 std::string json = base::StringPrintf("[%s]", data.c_str()); local 131 on_page_event_name_, json, profile_, GURL());
|
extension_function.cc | 7 #include "base/json/json_writer.h" 47 std::string json; local 50 base::JSONWriter::Write(result_.get(), false, &json); 51 return json;
|
file_manager_util.cc | 6 #include "base/json/json_writer.h" 111 std::string json = GetArgumentsJson(type, title, default_path, file_types, local 114 UrlEncodeStringWithoutEncodingSpaceAsPlus(json)); 120 std::string json = GetArgumentsJson(SelectFileDialog::SELECT_NONE, string16(), local 123 UrlEncodeStringWithoutEncodingSpaceAsPlus(json));
|
/external/chromium/chrome/browser/printing/cloud_print/ |
cloud_print_setup_message_handler.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 28 std::string json; local 29 args->GetString(0, &json); 31 if (json.empty()) { 32 NOTREACHED() << "Empty json string"; 36 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
|
/external/chromium/chrome/common/ |
json_value_serializer_perftest.cc | 39 // Holds json strings to be tested. 45 // Test deserialization of a json string into a Value object. We run the test 51 // Test chrome json implementation 78 std::string json; local 79 JSONStringValueSerializer reader(&json);
|
/packages/experimental/procstatlog/ |
procstatreport.py | 19 import json namespace 201 "id_js": json.write("total_cpu"), 203 "filename_js": json.write(files_url + "/total_cpu.csv"), 204 "options_js": json.write({ 243 "id_js": json.write("cpu_speed"), 245 "filename_js": json.write(files_url + "/cpu_speed.csv"), 246 "options_js": json.write({ 275 "id_js": json.write("context_switches"), 277 "filename_js": json.write(files_url + "/context_switches.csv"), 278 "options_js": json.write( [all...] |
/prebuilts/misc/common/json/ |
json-prebuilt.jar | |
/external/chromium/chrome/browser/web_resource/ |
promo_resource_service_unittest.cc | 5 #include "base/json/json_reader.h" 36 std::string json = "{ " local 51 base::JSONReader::Read(json, false))); 66 json = "{ " 82 base::JSONReader::Read(json, false))); 91 json = "{ " 101 base::JSONReader::Read(json, false))); 127 std::string json = "{ " local 144 base::JSONReader::Read(json, false))); 201 std::string json = "{ local [all...] |
/external/chromium/chrome/browser/debugger/ |
devtools_remote_service.cc | 9 #include "base/json/json_reader.h" 10 #include "base/json/json_writer.h" 42 // Bad JSON 46 DictionaryValue* json; local 48 json = static_cast<DictionaryValue*>(request.get()); 49 if (!json->HasKey(kCommandKey)) { 57 ProcessJson(json, message); 60 void DevToolsRemoteService::ProcessJson(DictionaryValue* json, 67 json->GetString(kCommandKey, &command);
|
/external/chromium/chrome/browser/remoting/ |
setup_flow_login_step.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 34 std::string json; local 35 if (!arg->GetAsString(&json) || json.empty()) { 40 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 139 std::string json; local 140 base::JSONWriter::Write(&args, false, &json); 142 UTF8ToWide(json) + L");";
|
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-java/ |
HelloLicenseServlet.java | 24 import com.google.appengine.repackaged.org.json.JSONObject; 93 // Parse the string as JSON and display the license state. 94 JSONObject json = new JSONObject(file); local 97 "YES".equals(json.get("result")) ? 98 "FULL".equals(json.get("accessLevel")) ? "full" : "free trial" :
|
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-java/workspace/HelloLicense/src/com/example/ |
HelloLicenseServlet.java | 24 import com.google.appengine.repackaged.org.json.JSONObject; 93 // Parse the string as JSON and display the license state. 94 JSONObject json = new JSONObject(file); local 97 "YES".equals(json.get("result")) ? 98 "FULL".equals(json.get("accessLevel")) ? "full" : "free trial" :
|
/external/robolectric/lib/main/ |
json-20080701.jar | |
/external/chromium/chrome/common/extensions/docs/build/ |
build.py | 29 _extension_api_json = _extension_api_dir + "/extension_api.json" 30 _devtools_api_json = _devtools_dir + "/ExtensionAPISchema.json" 34 _samples_json = _base_dir + "/samples.json" 43 import simplejson as json namespace 83 # Parse out just the JSON part. 94 output_parsed = json.loads(output[begin:end]) 96 raise Exception("Could not parse DumpRenderTree output as JSON. Error: " +
|