/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
|
/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/base/json/ |
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); 32 // JSON parser in binary form (as UTF8). 36 std::string* json); 38 // A static, constant JSON string representing an empty array. Useful 39 // for empty JSON argument passing [all...] |
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) [all...] |
/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/common/ |
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, 49 // Appends a script tag with a variable name |templateData| that has the JSON 51 void AppendJsonHtml(const DictionaryValue* json, std::string* output); 56 // Appends the code that processes the JsTemplate with the JSON. You should 64 // Appends the code that processes the i18n Template with the JSON. You
|
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) { 50 // Convert the template data to a json string. 51 DCHECK(json) << "must include json data structure" [all...] |
/external/webkit/Tools/TestResultServer/model/ |
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 = json.replace("[TESTDATA_CHROMEREVISION]", ",".join(chrome_revision) [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionExtras.java | 18 import org.json.JSONException; 38 * Flatten these extras as a JSON object.
|
JsonBackedSuggestionExtras.java | 18 import org.json.JSONException; 19 import org.json.JSONObject; 36 public JsonBackedSuggestionExtras(String json) throws JSONException { 37 mExtras = new JSONObject(json); 62 Log.w(TAG, "Could not extract JSON extra", e);
|
/external/chromium/chrome/browser/ui/webui/options/ |
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, 44 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 58 bool GetConfiguration(const std::string& json, SyncConfiguration* config) { 59 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 133 bool GetPassphrase(const std::string& json, std::string* passphrase) { 134 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)); 142 bool GetFirstPassphrase(const std::string& json, 145 scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false)) 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/ |
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/browser/extensions/ |
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_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->HasKey(keys::kEndTimeKey)) { // Optional 310 DictionaryValue* json; local 328 DictionaryValue* json; local 346 DictionaryValue* json; local [all...] |
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/ |
main.py | 87 logging.debug('Attempting to JSON parse: %s' % response_text) 88 json = simplejson.loads(response_text) 89 logging.debug('Got license server response: %s' % json) 91 logging.exception('Could not parse response as JSON: %s' % response_text) 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/ |
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);
|
devtools_remote_service.h | 42 void ProcessJson(DictionaryValue* json, const DevToolsRemoteMessage& message);
|
/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...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
RawContact.java | 21 import org.json.JSONObject; 22 import org.json.JSONException; 136 * Convert the RawContact object into a JSON string. From the 138 * @return a JSON string representation of the object 141 JSONObject json = new JSONObject(); local 145 json.put("f", mFirstName); 148 json.put("l", mLastName); 151 json.put("m", mCellPhone); 154 json.put("o", mOfficePhone); 157 json.put("h", mHomePhone) [all...] |
/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/v8/test/mjsunit/ |
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 = '{"seq":0,"type":"request","command":"frame"} [all...] |