Searched defs:json (Results 201 - 225 of 467) sorted by relevance

1234567891011>>

/external/chromium_org/chrome/common/extensions/docs/server2/
H A Dgitiles_file_system_test.py7 import json namespace
54 return _Response(json.dumps({'commit': 'a_commit'}))
68 content = json.dumps({
87 json.dumps({'commit': 'blah'})
94 json.dumps({
H A Dmanifest_data_source.py6 import json namespace
27 '''To display json in examples more clearly, convert the example of
33 feature['example'] = json.dumps(feature['example'])
47 example = json.dumps(value['example'])
/external/chromium_org/chrome/test/chromedriver/chrome/
H A Dlog.cc7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h"
86 std::string json; local
88 &value, base::JSONWriter::OPTIONS_PRETTY_PRINT, &json);
90 base::RemoveChars(json, "\r", &json);
93 if (json.length())
94 json.resize(json.length() - 1);
95 return json;
103 FormatJsonForDisplay(const std::string& json) argument
[all...]
/external/chromium_org/chrome/test/ispy/common/
H A Dispy_utils.py12 import json namespace
160 json.dumps({
164 'application/json')
232 images: a json encoded list of base64 encoded png images.
234 RGB: a json list representing the RGB values of a color to mask out.
287 info = json.loads(self.cloud_bucket.DownloadFile(
/external/chromium_org/components/autofill/content/browser/wallet/
H A Dwallet_address_unittest.cc5 #include "base/json/json_reader.h"
221 void SetUpDictionary(const std::string& json) { argument
222 scoped_ptr<base::Value> value(base::JSONReader::Read(json));
H A Dwallet_items_unittest.cc5 #include "base/json/json_reader.h"
391 void SetUpDictionary(const std::string& json) { argument
392 scoped_ptr<base::Value> value(base::JSONReader::Read(json));
/external/chromium_org/components/policy/core/common/cloud/
H A Dpolicy_header_service.cc8 #include "base/json/json_writer.h"
76 std::string json; local
77 base::JSONWriter::Write(&value, &json);
78 DCHECK(!json.empty());
82 base::Base64Encode(json, &encoded);
/external/chromium_org/components/policy/tools/
H A Dsyntax_check_policy_template_json.py7 Checks a policy_templates.json file for conformity to its syntax specification.
10 import json namespace
76 print ' Offending:', json.dumps(offending_snippet, indent=2)
497 description='Syntax check a policy_templates.json file.')
/external/chromium_org/content/public/browser/
H A Ddevtools_protocol_constants_generator.py8 import json namespace
27 // third_party/WebKit/Source/devtools/protocol.json and
28 // content/browser/devtools/browser_protocol.json
56 // third_party/WebKit/Source/devtools/protocol.json and
57 // content/browser/devtools/browser_protocol.json
155 blink_protocol = json.loads(blink_protocol_data)
162 browser_protocol = json.loads(browser_protocol_data)
/external/chromium_org/content/renderer/
H A Ddom_automation_controller.cc7 #include "base/json/json_string_value_serializer.h"
68 std::string json;
69 JSONStringValueSerializer serializer(&json);
91 routing_id(), json, automation_id_));
97 bool DomAutomationController::SendJSON(const std::string& json) { argument
104 routing_id(), json, automation_id_));
/external/chromium_org/content/test/gpu/gpu_tests/
H A Dmaps.py9 import json namespace
70 json_contents = json.load(f)
81 self.pixel_expectations = 'data/maps_002_expectations.json'
99 ps = page_set.PageSet(archive_data_file='data/maps.json',
H A Dwebgl_conformance.py4 import json namespace
/external/chromium_org/google_apis/drive/
H A Dgdata_wapi_requests.cc18 scoped_ptr<ResourceEntry> ParseResourceEntry(const std::string& json) { argument
19 scoped_ptr<base::Value> value = ParseJson(json);
/external/chromium_org/native_client_sdk/src/build_tools/
H A Dbuild_app.py6 import json namespace
34 # Remove unwanted files from the package. Also remove manifest.json files
36 # examples, though, which CWS complains about. The master manifest.json
40 f == 'manifest.json' or
142 pretty_permissions = json.dumps(all_permissions, sort_keys=True, indent=4)
156 # Add manifest.json after RemoveBuildCruft... that function removes the
157 # manifest.json files for the individual examples.
171 os.path.join(sdk_resources_dir, 'manifest.json.template'),
172 os.path.join(app_examples_dir, 'manifest.json'),
H A Dgenerate_make.py5 import json namespace
147 srcpath = os.path.join(SDK_RESOURCE_DIR, 'manifest.json.template')
148 dstpath = os.path.join(outdir, 'manifest.json')
154 pretty_permissions = json.dumps(combined_permissions,
H A Dupdate_sdktools.py21 import json namespace
61 return json.loads(json_string, object_pairs_hook=collections.OrderedDict)
63 return json.loads(json_string)
124 UpdateManifestFileToRevision('json/naclsdk_manifest0.json', revision)
125 UpdateManifestFileToRevision('json/naclsdk_manifest2.json', revision)
/external/chromium_org/native_client_sdk/src/doc/doxygen/
H A Dgenerate_docs.py8 import json namespace
33 url = 'http://omahaproxy.appspot.com/json'
36 data = json.loads(u.read())
/external/chromium_org/sync/internal_api/public/engine/
H A Dmodel_safe_worker.cc8 #include "base/json/json_writer.h"
29 std::string json; local
30 base::JSONWriter::Write(dict.get(), &json);
31 return json;
/external/chromium_org/sync/internal_api/public/sessions/
H A Dsync_session_snapshot.cc7 #include "base/json/json_writer.h"
105 std::string json; local
108 &json);
109 return json;
/external/chromium_org/third_party/WebKit/Source/devtools/scripts/
H A Dconvert_svg_images_to_png.py39 import json namespace
41 import simplejson as json namespace
/external/chromium_org/third_party/WebKit/Tools/GardeningServer/
H A Dalerts_test.py6 import json namespace
27 self.assertEqual(res.content_type, 'application/json')
44 alerts = json.loads(res.body)
65 alerts = json.loads(res.body)
74 params = {'content': json.dumps(put_alerts)}
78 got_alerts = json.loads(res.body)
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/
H A Dlayouttestresults.py29 import json namespace
40 # These are helper functions for navigating the results json structure.
95 json_dict = json.loads(content_string)
/external/chromium_org/third_party/libaddressinput/chromium/
H A Djson.cc5 #include "third_party/libaddressinput/src/cpp/src/util/json.h"
11 #include "base/json/json_reader.h"
22 // Returns |json| parsed into a JSON dictionary. Sets |parser_error| to true if
24 ::scoped_ptr<const base::DictionaryValue> Parse(const std::string& json, argument
29 // |json| is converted to a |c_str()| here because rapidjson and other parts
31 ::scoped_ptr<const base::Value> parsed(base::JSONReader::Read(json.c_str()));
48 explicit JsonImpl(const std::string& json) argument
49 : owned_(Parse(json, &parser_error_)),
90 bool Json::ParseObject(const std::string& json) { argument
92 impl_.reset(new JsonImpl(json));
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
H A Drule.cc30 #include "util/json.h"
163 Json json; local
164 if (!json.ParseObject(serialized_rule)) {
167 ParseJsonRule(json);
171 void Rule::ParseJsonRule(const Json& json) { argument
173 if (json.GetStringValueForKey("id", &value)) {
177 if (json.GetStringValueForKey("fmt", &value)) {
181 if (json.GetStringValueForKey("lfmt", &value)) {
185 if (json.GetStringValueForKey("require", &value)) {
189 if (json
[all...]
/external/chromium_org/third_party/libaddressinput/src/cpp/src/util/
H A Djson.cc15 #include "json.h"
37 explicit JsonImpl(const std::string& json) argument
42 document_->Parse<kParseValidateEncodingFlag>(json.c_str());
110 bool Json::ParseObject(const std::string& json) { argument
112 impl_.reset(new JsonImpl(json));

Completed in 703 milliseconds

1234567891011>>