Home
last modified time | relevance | path

Searched full:json (Results 1 – 25 of 10435) sorted by relevance

12345678910>>...418

/external/angle/src/libANGLE/capture/
Dframe_capture_utils.cpp244 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope() argument
249 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope() argument
257 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope() argument
265 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF() argument
267 json->addScalar("red", color.red); in SerializeColorF()
268 json->addScalar("green", color.green); in SerializeColorF()
269 json->addScalar("blue", color.blue); in SerializeColorF()
270 json->addScalar("alpha", color.alpha); in SerializeColorF()
273 void SerializeColorFWithGroup(JsonSerializer *json, const char *groupName, const ColorF &color) in SerializeColorFWithGroup() argument
275 GroupScope group(json, groupName); in SerializeColorFWithGroup()
[all …]
/external/python/cpython2/Lib/json/tests/
Dtest_fail.py1 from json.tests import PyTest, CTest
5 # http://json.org/JSON_checker/test/fail1.json
6 '"A JSON payload should be an object or array, not a string."',
7 # http://json.org/JSON_checker/test/fail2.json
9 # http://json.org/JSON_checker/test/fail3.json
11 # http://json.org/JSON_checker/test/fail4.json
13 # http://json.org/JSON_checker/test/fail5.json
15 # http://json.org/JSON_checker/test/fail6.json
17 # http://json.org/JSON_checker/test/fail7.json
19 # http://json.org/JSON_checker/test/fail8.json
[all …]
/external/jsoncpp/src/test_lib_json/
Dmain.cpp21 #include <json/config.h>
22 #include <json/json.h>
28 using CharReaderPtr = std::unique_ptr<Json::CharReader>;
32 #define kint32max Json::Value::maxInt
33 #define kint32min Json::Value::minInt
34 #define kuint32max Json::Value::maxUInt
35 #define kint64max Json::Value::maxInt64
36 #define kint64min Json::Value::minInt64
37 #define kuint64max Json::Value::maxUInt64
46 // Json Library test cases
[all …]
/external/boringssl/src/util/
Dconvert_wycheproof.go20 "encoding/json"
30 Algorithm string `json:"algorithm"`
31 GeneratorVersion string `json:"generatorVersion"`
32 NumberOfTests int `json:"numberOfTests"`
33 Notes map[string]string `json:"notes"`
34 Header []string `json:"header"`
35 // encoding/json does not support collecting unused keys, so we leave
37 TestGroups []map[string]interface{} `json:"testGroups"`
131 if err := json.Unmarshal(jsonData, &w); err != nil {
149 // JWK is a JSON object.
[all …]
/external/rust/cxx/book/src/binding/
Dcxxstring.md25 This example uses C++17's std::variant to build a toy JSON type. JSON can hold
26 various types including strings, and JSON's object type is a map with string
37 include!("example/include/json.h");
39 #[cxx_name = "json"]
40 type Json;
44 fn isNull(self: &Json) -> bool;
45 fn isNumber(self: &Json) -> bool;
46 fn isString(self: &Json) -> bool;
47 fn isArray(self: &Json) -> bool;
48 fn isObject(self: &Json) -> bool;
[all …]
/external/jsoncpp/src/jsontestrunner/
Dmain.cpp13 /* This executable is used for testing parser/writer using real JSON files.
19 #include <json/json.h>
24 Json::String path;
25 Json::Features features;
27 using writeFuncType = Json::String (*)(Json::Value const&);
31 static Json::String normalizeFloatingPointStr(double value) { in normalizeFloatingPointStr()
35 Json::String s(buffer); in normalizeFloatingPointStr()
36 Json::String::size_type index = s.find_last_of("eE"); in normalizeFloatingPointStr()
37 if (index != Json::String::npos) { in normalizeFloatingPointStr()
38 Json::String::size_type hasSign = in normalizeFloatingPointStr()
[all …]
/external/llvm-project/clang-tools-extra/clangd/
DProtocol.cpp24 #include "llvm/Support/JSON.h"
54 bool fromJSON(const llvm::json::Value &E, URIForFile &R, llvm::json::Path P) { in fromJSON()
78 llvm::json::Value toJSON(const URIForFile &U) { return U.uri(); } in toJSON()
84 llvm::json::Value toJSON(const TextDocumentIdentifier &R) { in toJSON()
85 return llvm::json::Object{{"uri", R.uri}}; in toJSON()
88 bool fromJSON(const llvm::json::Value &Params, TextDocumentIdentifier &R, in fromJSON()
89 llvm::json::Path P) { in fromJSON()
90 llvm::json::ObjectMapper O(Params, P); in fromJSON()
94 llvm::json::Value toJSON(const VersionedTextDocumentIdentifier &R) { in toJSON()
100 bool fromJSON(const llvm::json::Value &Params, in fromJSON()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json:"workspaceFolders,omitempty"`
[all …]
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dtsprotocol.go33 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
40 LinkSupport bool `json:"linkSupport,omitempty"`
72 DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
79 LinkSupport bool `json:"linkSupport,omitempty"`
107 WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
121 WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
122 } `json:"workspace,omitempty"`
139 Supported bool `json:"supported,omitempty"`
150 ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
151 } `json:"workspaceFolders,omitempty"`
[all …]
/external/python/cpython3/Lib/test/test_json/
Dtest_fail.py5 # http://json.org/JSON_checker/test/fail1.json
6 '"A JSON payload should be an object or array, not a string."',
7 # http://json.org/JSON_checker/test/fail2.json
9 # http://json.org/JSON_checker/test/fail3.json
11 # http://json.org/JSON_checker/test/fail4.json
13 # http://json.org/JSON_checker/test/fail5.json
15 # http://json.org/JSON_checker/test/fail6.json
17 # http://json.org/JSON_checker/test/fail7.json
19 # http://json.org/JSON_checker/test/fail8.json
21 # http://json.org/JSON_checker/test/fail9.json
[all …]
/external/starlark-go/starlark/testdata/
Djson.star1 # Tests of json module.
4 load("json.star", "json")
6 assert.eq(dir(json), ["decode", "encode", "indent"])
10 ## json.encode
12 assert.eq(json.encode(None), "null")
13 assert.eq(json.encode(True), "true")
14 assert.eq(json.encode(False), "false")
15 assert.eq(json.encode(-123), "-123")
16 assert.eq(json.encode(12345*12345*12345*12345*12345*12345), "3539537889086624823140625")
17 assert.eq(json.encode(float(12345*12345*12345*12345*12345*12345)), "3.539537889086625e+24")
[all …]
/external/skqp/infra/bots/recipe_modules/checkout/examples/full.expected/
Dflutter_trybot.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
64 "@@@STEP_LOG_LINE@json.output@{@@@",
65 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
66 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
67 "@@@STEP_LOG_LINE@json.output@ \"src/flutter\": \"origin/master\", @@@",
68 "@@@STEP_LOG_LINE@json.output@ \"src/third_party/skia\": \"abc123\"@@@",
[all …]
DBuild-Win-Clang-x86_64-Release-ParentRevision.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
60 "@@@STEP_LOG_LINE@json.output@{@@@",
61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123^\"@@@",
64 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
Dparent_revision_trybot.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
60 "@@@STEP_LOG_LINE@json.output@{@@@",
61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
64 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
Dcross_repo_trybot.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
62 "@@@STEP_LOG_LINE@json.output@{@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
64 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
65 "@@@STEP_LOG_LINE@json.output@ \"parent_repo\": \"abc123\"@@@",
66 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
Dtrybot.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
62 "@@@STEP_LOG_LINE@json.output@{@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
64 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
65 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
66 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
DBuild-Mac-Clang-x86_64-Debug-CommandBuffer.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
60 "@@@STEP_LOG_LINE@json.output@{@@@",
61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
64 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
/external/webrtc/rtc_base/strings/
Djson.h18 #include "json/json.h"
20 #include "third_party/jsoncpp/json.h"
26 // JSON Helpers
30 bool GetIntFromJson(const Json::Value& in, int* out);
31 bool GetUIntFromJson(const Json::Value& in, unsigned int* out);
32 bool GetStringFromJson(const Json::Value& in, std::string* out);
33 bool GetBoolFromJson(const Json::Value& in, bool* out);
34 bool GetDoubleFromJson(const Json::Value& in, double* out);
36 // Pull values out of a JSON array.
37 bool GetValueFromJsonArray(const Json::Value& in, size_t n, Json::Value* out);
[all …]
Djson.cc11 #include "rtc_base/strings/json.h"
21 bool GetStringFromJson(const Json::Value& in, std::string* out) { in GetStringFromJson()
40 bool GetIntFromJson(const Json::Value& in, int* out) { in GetIntFromJson()
43 ret = in.isConvertibleTo(Json::intValue); in GetIntFromJson()
60 bool GetUIntFromJson(const Json::Value& in, unsigned int* out) { in GetUIntFromJson()
63 ret = in.isConvertibleTo(Json::uintValue); in GetUIntFromJson()
79 bool GetBoolFromJson(const Json::Value& in, bool* out) { in GetBoolFromJson()
82 ret = in.isConvertibleTo(Json::booleanValue); in GetBoolFromJson()
100 bool GetDoubleFromJson(const Json::Value& in, double* out) { in GetDoubleFromJson()
103 ret = in.isConvertibleTo(Json::realValue); in GetDoubleFromJson()
[all …]
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_util.h28 #include "src/core/lib/json/json.h"
32 // Parses a JSON field of the form generated for a google.proto.Duration
34 // https://developers.google.com/protocol-buffers/docs/proto3#json
36 bool ParseDurationFromJson(const Json& field, grpc_millis* duration);
39 // Helper functions for extracting types from JSON.
44 inline bool ExtractJsonNumber(const Json& json, const std::string& field_name, in ExtractJsonNumber() argument
48 if (json.type() != Json::Type::NUMBER) { in ExtractJsonNumber()
54 if (!absl::SimpleAtoi(json.string_value(), output)) { in ExtractJsonNumber()
63 inline bool ExtractJsonBool(const Json& json, const std::string& field_name, in ExtractJsonBool() argument
65 switch (json.type()) { in ExtractJsonBool()
[all …]
/external/skia/infra/bots/recipe_modules/checkout/examples/full.expected/
Dflutter_trybot.json32 "--json-output",
33 "/path/to/tmp/json",
45 "--json-output",
46 "/path/to/tmp/json",
60 "--json-output",
61 "/path/to/tmp/json",
84 "/path/to/tmp/json",
109 "@@@STEP_LOG_LINE@json.output@{@@@",
110 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
111 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
[all …]
/external/skqp/infra/bots/recipes/bookmaker.expected/
Dnightly_bookmaker.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
60 "@@@STEP_LOG_LINE@json.output@{@@@",
61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
64 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
/external/skqp/infra/bots/recipes/housekeeper.expected/
DHousekeeper-PerCommit.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
60 "@@@STEP_LOG_LINE@json.output@{@@@",
61 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
62 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
64 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
DHousekeeper-PerCommit-Trybot.json7 "--json-output",
8 "/path/to/tmp/json",
22 "--json-output",
23 "/path/to/tmp/json",
46 "/path/to/tmp/json",
62 "@@@STEP_LOG_LINE@json.output@{@@@",
63 "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
64 "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
65 "@@@STEP_LOG_LINE@json.output@ \"skia\": \"abc123\"@@@",
66 "@@@STEP_LOG_LINE@json.output@ }, @@@",
[all …]
/external/python/cpython3/Doc/library/
Djson.rst1 :mod:`json` --- JSON encoder and decoder
4 .. module:: json
5 :synopsis: Encode and decode the JSON format.
10 **Source code:** :source:`Lib/json/__init__.py`
14 `JSON (JavaScript Object Notation) <http://json.org>`_, specified by
21 :mod:`json` exposes an API familiar to users of the standard library
26 >>> import json
27 >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])
29 >>> print(json.dumps("\"foo\bar"))
31 >>> print(json.dumps('\u1234'))
[all …]

12345678910>>...418