/external/v8/test/mjsunit/regress/ |
H A D | 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);
|
H A D | regress-1081309.js | 37 function ParsedResponse(json) { 38 this.response_ = eval('(' + json + ')'); 75 var json; 76 json = '{"seq":0,"type":"request","command":"backtrace"}' 77 var response = new ParsedResponse(dcp.processDebugJSONRequest(json));
|
/external/chromium/chrome/browser/ |
H A D | dom_operation_notification_details.h | 15 DomOperationNotificationDetails(const std::string& json, int automation_id) argument 16 : json_(json), automation_id_(automation_id) { } 20 std::string json() const { return json_; } function in class:DomOperationNotificationDetails
|
/external/v8/test/mjsunit/ |
H A D | mirror-boolean.js | 35 var json = JSON.stringify(serializer.serializeValue(mirror)); 51 var fromJSON = eval('(' + json + ')'); 52 assertEquals('boolean', fromJSON.type, json); 53 assertEquals(b, fromJSON.value, json);
|
H A D | debug-mirror-cache.js | 61 var json; 62 json = '{"seq":0,"type":"request","command":"backtrace"}' 63 dcp.processDebugJSONRequest(json);
|
H A D | mirror-null.js | 34 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 49 var fromJSON = eval('(' + json + ')');
|
H A D | mirror-undefined.js | 34 var json = JSON.stringify(serializer.serializeValue(mirror)); variable 49 var fromJSON = eval('(' + json + ')');
|
H A D | debug-backtrace.js | 51 function ParsedResponse(json) { 52 this.response_ = eval('(' + json + ')'); 101 var json; 102 json = '{"seq":0,"type":"request","command":"backtrace"}' 103 var resp = dcp.processDebugJSONRequest(json); 126 json = '{"seq":0,"type":"request","command":"backtrace","arguments":{"fromFrame":1,"toFrame":3}}' 127 response = new ParsedResponse(dcp.processDebugJSONRequest(json)); 144 json = '{"seq":0,"type":"request","command":"backtrace","arguments":{"fromFrame":0,"toFrame":2, "bottom":true}}' 145 response = new ParsedResponse(dcp.processDebugJSONRequest(json)); 161 json [all...] |
H A D | mirror-number.js | 35 var json = JSON.stringify(serializer.serializeValue(mirror)); 51 var fromJSON = eval('(' + json + ')');
|
/external/chromium/base/json/ |
H A D | json_writer.h | 20 // Given a root node, generates a JSON string and puts it into |json|. 21 // If |pretty_print| is true, return a slightly nicer formated json string 24 // TODO(tc): Should we generate json if it would be invalid json (e.g., 28 std::string* json); 36 std::string* json); 43 JSONWriter(bool pretty_print, std::string* json);
|
H A D | json_writer.cc | 5 #include "base/json/json_writer.h" 7 #include "base/json/string_escape.h" 28 std::string* json) { 29 WriteWithOptionalEscape(node, pretty_print, true, json); 36 std::string* json) { 37 json->clear(); 39 json->reserve(1024); 40 JSONWriter writer(pretty_print, json); 43 json->append(kPrettyPrintLineEnding); 46 JSONWriter::JSONWriter(bool pretty_print, std::string* json) argument 26 Write(const Value* const node, bool pretty_print, std::string* json) argument 33 WriteWithOptionalEscape(const Value* const node, bool pretty_print, bool escape, std::string* json) argument [all...] |
/external/chromium/chrome/browser/net/ |
H A D | net_log_logger.cc | 10 #include "base/json/json_writer.h" 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/common/ |
H A D | jstemplate_builder.h | 10 // - given a json data object, run the jstemplate javascript which fills in 30 const DictionaryValue* json, 37 const DictionaryValue* json); 43 const DictionaryValue* json, 51 void AppendJsonHtml(const DictionaryValue* json, std::string* output);
|
H A D | jstemplate_builder.cc | 19 const DictionaryValue* json, 22 AppendJsonHtml(json, &output); 29 const DictionaryValue* json) { 31 AppendJsonHtml(json, &output); 38 const DictionaryValue* json, 43 AppendJsonHtml(json, &output); 49 void AppendJsonHtml(const DictionaryValue* json, std::string* output) { argument 50 // Convert the template data to a json string. 51 DCHECK(json) << "must include json dat 18 GetTemplateHtml(const base::StringPiece& html_template, const DictionaryValue* json, const base::StringPiece& template_id) argument 28 GetI18nTemplateHtml(const base::StringPiece& html_template, const DictionaryValue* json) argument 37 GetTemplatesHtml(const base::StringPiece& html_template, const DictionaryValue* json, const base::StringPiece& template_id) argument [all...] |
/external/chromium/chrome/browser/ui/webui/options/ |
H A D | sync_setup_handler.cc | 7 #include "base/json/json_reader.h" 8 #include "base/json/json_writer.h" 39 bool GetAuthData(const std::string& json, argument 44 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 58 bool GetConfiguration(const std::string& json, SyncConfiguration* config) { argument 59 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 133 bool GetPassphrase(const std::string& json, std::string* passphrase) { argument 134 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 142 bool GetFirstPassphrase(const std::string& json, argument 145 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, fals 368 std::string json; local 390 std::string json; local 413 std::string json; local 439 std::string json; local [all...] |
/external/chromium/chrome/browser/printing/cloud_print/ |
H A D | 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/webkit/Tools/TestResultServer/model/ |
H A D | jsonresults_unittest.py | 89 json = JSON_RESULTS_TEMPLATE 103 json = json.replace("[TESTDATA_COUNTS]", ",".join(counts)) 104 json = json.replace("[TESTDATA_COUNT]", ",".join(builds)) 105 json = json.replace("[TESTDATA_BUILDNUMBERS]", ",".join(build_numbers)) 106 json = json.replace("[TESTDATA_WEBKITREVISION]", ",".join(webkit_revision)) 107 json [all...] |
/external/chromium/chrome/browser/extensions/ |
H A D | 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());
|
H A D | extension_history_api.cc | 8 #include "base/json/json_writer.h" 223 DictionaryValue* json; local 224 EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &json)); 227 EXTENSION_FUNCTION_VALIDATE(json->Get(keys::kUrlKey, &value)); 260 DictionaryValue* json; local 261 EXTENSION_FUNCTION_VALIDATE(args_->GetDictionary(0, &json)); 265 EXTENSION_FUNCTION_VALIDATE(json->GetString(keys::kTextKey, &search_text)); 271 if (json->HasKey(keys::kStartTimeKey)) { // Optional. 273 EXTENSION_FUNCTION_VALIDATE(json->Get(keys::kStartTimeKey, &value)); 276 if (json 310 DictionaryValue* json; local 328 DictionaryValue* json; local 346 DictionaryValue* json; local [all...] |
H A D | 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;
|
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/ |
H A D | main.py | 88 json = simplejson.loads(response_text) 89 logging.debug('Got license server response: %s' % json) 99 if json.has_key('error'): 101 license['message'] = json['error']['message'] 102 elif json['result'] == 'YES' and json['accessLevel'] in VALID_ACCESS_LEVELS: 103 license['access'] = json['accessLevel']
|
/external/chromium/chrome/browser/debugger/ |
H A D | devtools_remote_service.cc | 9 #include "base/json/json_reader.h" 10 #include "base/json/json_writer.h" 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, argument 67 json->GetString(kCommandKey, &command);
|
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-java/ |
H A D | HelloLicenseServlet.java | 24 import com.google.appengine.repackaged.org.json.JSONObject; 94 JSONObject json = new JSONObject(file); 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/ |
H A D | HelloLicenseServlet.java | 24 import com.google.appengine.repackaged.org.json.JSONObject; 94 JSONObject json = new JSONObject(file); 97 "YES".equals(json.get("result")) ? 98 "FULL".equals(json.get("accessLevel")) ? "full" : "free trial" :
|
/external/chromium/chrome/browser/remoting/ |
H A D | 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");";
|