HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 26 - 50 of 1096) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/chromium_org/base/debug/
trace_event_argument_unittest.cc 17 std::string json; local
18 value->AppendAsTraceFormat(&json);
20 json);
43 std::string json; local
44 value->AppendAsTraceFormat(&json);
49 json);
  /external/chromium_org/third_party/simplejson/
tool.py 1 r"""Command-line tool to validate and pretty-print JSON
5 $ echo '{"json":"obj"}' | python -m simplejson.tool
7 "json": "obj"
14 import simplejson as json namespace
29 obj = json.load(infile,
30 object_pairs_hook=json.OrderedDict,
34 json.dump(obj, outfile, sort_keys=True, indent=' ', use_decimal=True)
  /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_org/cc/test/
layer_tree_json_parser.h 17 scoped_refptr<Layer> ParseTreeFromJson(std::string json,
  /external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/omnibox/
SuggestionAnswerTest.java 14 String json = "} malformed json {"; local
15 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json);
21 String json = ""; local
22 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json);
28 String json = local
32 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json);
38 String json = local
43 SuggestionAnswer answer = SuggestionAnswer.parseAnswerContents(json);
49 String json local
61 String json = local
75 String json = local
100 String json = local
    [all...]
  /external/chromium_org/cloud_print/gcp20/prototype/
printer_state.cc 8 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h"
45 base::DictionaryValue json; local
47 json.SetBoolean(kRegistered, true);
48 json.SetString(kUser, state.user);
49 json.SetString(kDeviceId, state.device_id);
50 json.SetString(kRefreshToken, state.refresh_token);
51 json.SetString(kXmppJid, state.xmpp_jid);
52 json.SetString(kAccessToken, state.access_token);
53 json.SetInteger(kAccessTokenUpdate
89 base::DictionaryValue* json = NULL; local
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/server2/
redirector_test.py 6 import json namespace
18 'redirects.json': json.dumps({
25 'redirects.json': json.dumps({
32 'redirects.json': json.dumps({
46 'redirects.json': json.dumps({
52 'redirects.json': json.dumps(
    [all...]
  /external/chromium_org/tools/json_schema_compiler/
model.py 31 json,
35 """Add a namespace's json to the model and returns the namespace.
37 namespace = Namespace(json,
66 files such as chrome/common/extensions/api/_permission_features.json.
104 json,
108 self.name = json['namespace']
109 if 'description' not in json:
113 json['description'] = ''
114 self.description = json['description']
115 self.deprecated = json.get('deprecated', None
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/
json_results_generator_unittest.py 29 import json namespace
55 json = "['contents']"
56 self.assertEqual(json_results_generator.strip_json_wrapper(json_results_generator._JSON_PREFIX + json + json_results_generator._JSON_SUFFIX), json)
57 self.assertEqual(json_results_generator.strip_json_wrapper(json), json)
82 self.assertEqual(json.dumps(trie), json.dumps(expected_trie))
  /external/chromium_org/tools/telemetry/telemetry/core/platform/power_monitor/
monsoon_power_monitor_unittest.py 5 import json namespace
18 json.dumps(data))
  /external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
AddressVerificationData.java 48 String json = mPropertiesMap.get(key); local
49 if (json != null && isValidKey(key)) {
50 return createNodeData(json);
78 * Returns the contents of the JSON-format string as a map.
80 AddressVerificationNodeData createNodeData(String json) {
82 json = json.substring(1, json.length() - 1);
90 Matcher sm = SEPARATOR_PATTERN.matcher(json);
92 while (pos < json.length())
    [all...]
  /external/chromium_org/components/cloud_devices/common/
cloud_device_description.cc 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h"
24 root_->SetString(json::kVersion, json::kVersion10);
34 root_->GetString(json::kVersion, &version);
35 return version == json::kVersion10;
38 bool CloudDeviceDescription::InitFromString(const std::string& json) {
39 scoped_ptr<base::Value> parsed(base::JSONReader::Read(json));
48 std::string json; local
50 root_.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
    [all...]
  /external/chromium_org/base/json/
json_writer.h 32 // Return a slightly nicer formatted json string (pads with whitespace to
37 // Given a root node, generates a JSON string and puts it into |json|.
38 // TODO(tc): Should we generate json if it would be invalid json (e.g.,
41 static bool Write(const Value* const node, std::string* json);
46 std::string* json);
49 JSONWriter(int options, std::string* json);
51 // Called recursively to build the JSON string. When completed,
52 // |json_string_| will contain the JSON
    [all...]
json_reader.h 5 // A JSON parser. Converts strings of JSON into a Value object (see
55 // the JSON object, which speeds up certain operations on children. However,
95 // Reads and parses |json|, returning a Value. The caller owns the returned
96 // instance. If |json| is not a properly formed JSON string, returns NULL.
97 static Value* Read(const StringPiece& json);
99 // Reads and parses |json|, returning a Value owned by the caller. The
102 static Value* Read(const StringPiece& json, int options);
104 // Reads and parses |json| like Read(). |error_code_out| and |error_msg_out
    [all...]