HomeSort by relevance Sort by last modified time
    Searched refs:json (Results 1 - 25 of 723) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/chromium_org/chrome/common/extensions/docs/server2/test_data/
canned_data.py 5 import json namespace
44 '_api_features.json': json.dumps({
48 '_manifest_features.json': json.dumps({
51 '_permission_features.json': json.dumps({
60 'json': {
61 'api_availabilities.json': json.dumps(
    [all...]
  /external/chromium_org/content/public/browser/
dom_operation_notification_details.h 16 DomOperationNotificationDetails(const std::string& json, int automation_id)
17 : json(json), automation_id(automation_id) { }
19 std::string json; member in struct:content::DomOperationNotificationDetails
  /external/chromium_org/build/android/buildbot/
env_to_json.py 6 # Encode current environment into json.
8 import json namespace
11 print json.dumps(dict(os.environ))
  /external/chromium_org/third_party/JSON/JSON-2.59/t/
e09_encode.t 9 BEGIN { $ENV{PERL_JSON_BACKEND} = "JSON::backportPP"; }
11 use JSON;
20 my $json = JSON->new->allow_nonref;
22 is($json->encode("ü"), q|"ü"|); # as is
24 $json->ascii;
26 is($json->encode("\xfc"), q|"\u00fc"|); # latin1
27 is($json->encode("\xc3\xbc"), q|"\u00c3\u00bc"|); # utf8
28 is($json->encode("ü"), q|"\u00c3\u00bc"|); # utf8
29 is($json->encode('?'), q|"\u00e3\u0081\u0082"|)
    [all...]
e08_decode.t 9 BEGIN { $ENV{PERL_JSON_BACKEND} = "JSON::backportPP"; }
11 use JSON;
20 my $json = JSON->new->allow_nonref;
23 is($json->decode(q|"ü"|), "ü"); # utf8
24 is($json->decode(q|"\u00fc"|), "\xfc"); # latin1
25 is($json->decode(q|"\u00c3\u00bc"|), "\xc3\xbc"); # utf8
29 is($json->decode(q|"\u00e3\u0081\u0082"|), $str);
33 is($json->decode(q|"\u3042"|), $str);
36 my $utf8 = $json->decode(q|"\ud808\udf45"|); # chr 1234
    [all...]
xe08_decode.t 11 use JSON;
21 skip "can't use JSON::XS.", 6, unless( JSON->backend->is_xs );
23 my $json = JSON->new->allow_nonref;
26 is($json->decode(q|"ü"|), "ü"); # utf8
27 is($json->decode(q|"\u00fc"|), "\xfc"); # latin1
28 is($json->decode(q|"\u00c3\u00bc"|), "\xc3\xbc"); # utf8
32 is($json->decode(q|"\u00e3\u0081\u0082"|), $str);
36 is($json->decode(q|"\u3042"|), $str)
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_json.py 1 """Tests for json.
3 The tests for json are defined in the json.tests package;
8 import json.tests namespace
13 test.test_support.run_unittest(json.tests.test_suite())
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_json.py 1 """Tests for json.
3 The tests for json are defined in the json.tests package;
8 import json.tests namespace
13 test.test_support.run_unittest(json.tests.test_suite())
  /prebuilts/misc/common/json/
json-prebuilt.jar 
  /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
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/tests/
test_speedups.py 1 from json.tests import CTest
6 self.assertEqual(self.json.decoder.scanstring.__module__, "_json")
7 self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring)
10 self.assertEqual(self.json.encoder.encode_basestring_ascii.__module__,
12 self.assertIs(self.json.encoder.encode_basestring_ascii,
13 self.json.encoder.c_encode_basestring_ascii)
17 self.assertRaises(AttributeError, self.json.scanner.c_make_scanner, 1)
20 self.assertRaises(TypeError, self.json.encoder.c_make_encoder,
__init__.py 3 import json namespace
9 # import json with and without accelerations
10 cjson = test_support.import_fresh_module('json', fresh=['_json'])
11 pyjson = test_support.import_fresh_module('json', blocked=['_json'])
15 json = pyjson variable in class:PyTest
22 json = cjson variable in class:CTest
29 self.assertEqual(self.json.scanner.make_scanner.__module__,
30 'json.scanner')
31 self.assertEqual(self.json.decoder.scanstring.__module__,
32 'json.decoder'
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/tests/
test_speedups.py 1 from json.tests import CTest
6 self.assertEqual(self.json.decoder.scanstring.__module__, "_json")
7 self.assertIs(self.json.decoder.scanstring, self.json.decoder.c_scanstring)
10 self.assertEqual(self.json.encoder.encode_basestring_ascii.__module__,
12 self.assertIs(self.json.encoder.encode_basestring_ascii,
13 self.json.encoder.c_encode_basestring_ascii)
17 self.assertRaises(AttributeError, self.json.scanner.c_make_scanner, 1)
20 self.assertRaises(TypeError, self.json.encoder.c_make_encoder,
__init__.py 3 import json namespace
9 # import json with and without accelerations
10 cjson = test_support.import_fresh_module('json', fresh=['_json'])
11 pyjson = test_support.import_fresh_module('json', blocked=['_json'])
15 json = pyjson variable in class:PyTest
22 json = cjson variable in class:CTest
29 self.assertEqual(self.json.scanner.make_scanner.__module__,
30 'json.scanner')
31 self.assertEqual(self.json.decoder.scanstring.__module__,
32 'json.decoder'
    [all...]
  /external/robolectric/lib/main/
json-20080701.jar 
  /packages/apps/UnifiedEmail/src/com/android/mail/preferences/
BackupSharedPreference.java 19 import org.json.JSONException;
20 import org.json.JSONObject;
SimpleBackupSharedPreference.java 21 import org.json.JSONArray;
22 import org.json.JSONException;
23 import org.json.JSONObject;
58 final JSONObject json = new JSONObject(); local
59 json.put(KEY, mKey);
66 json.put(VALUE, array);
68 json.put(VALUE, mValue);
70 return json;
73 public static BackupSharedPreference fromJson(final JSONObject json) throws JSONException {
74 Object value = json.get(VALUE)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/inspector/
JSONParser.h 41 PassRefPtr<JSONValue> parseJSON(const String& json);
  /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
  /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.
  /external/chromium_org/cc/test/
layer_tree_json_parser.h 17 scoped_refptr<Layer> ParseTreeFromJson(std::string json,
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/json/
tool.py 1 r"""Command-line tool to validate and pretty-print JSON
5 $ echo '{"json":"obj"}' | python -m json.tool
7 "json": "obj"
9 $ echo '{ 1.2:3.4}' | python -m json.tool
14 import json namespace
30 obj = json.load(infile)
34 json.dump(obj, outfile, sort_keys=True,
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/json/
tool.py 1 r"""Command-line tool to validate and pretty-print JSON
5 $ echo '{"json":"obj"}' | python -m json.tool
7 "json": "obj"
9 $ echo '{ 1.2:3.4}' | python -m json.tool
14 import json namespace
30 obj = json.load(infile)
34 json.dump(obj, outfile, sort_keys=True,
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
ListParams.java 25 import org.json.JSONException;
26 import org.json.JSONObject;
91 JSONObject json = new JSONObject(); local
93 json.put(LIMIT_KEY, mLimit);
94 json.put(USE_NETWORK_KEY, mUseNetwork);
98 return json.toString();
112 JSONObject json = null; local
114 json = new JSONObject(serializedParams);
115 final int limit = json.getInt(LIMIT_KEY);
116 final boolean useNetwork = json.getBoolean(USE_NETWORK_KEY)
    [all...]

Completed in 503 milliseconds

1 2 3 4 5 6 7 8 91011>>