Home
last modified time | relevance | path

Searched refs:Json (Results 1 – 25 of 166) sorted by relevance

1234567

/AliOS-Things-master/components/jsoncpp/src/test_lib_json/
A Dmain.cpp68 Json::Value emptyArray_{Json::arrayValue};
69 Json::Value emptyObject_{Json::objectValue};
72 Json::Value smallUnsignedInteger_{Json::Value::UInt(Json::Value::maxInt)};
565 val = Json::Value(Json::intValue); in JSONTEST_FIXTURE_LOCAL()
593 val = Json::Value(Json::uintValue); in JSONTEST_FIXTURE_LOCAL()
621 val = Json::Value(Json::realValue); in JSONTEST_FIXTURE_LOCAL()
760 val = Json::Value(Json::UInt(1 << 20)); in JSONTEST_FIXTURE_LOCAL()
980 val = Json::Value(Json::Int64(1) << 40); in JSONTEST_FIXTURE_LOCAL()
1623 checkIsLess(Json::Value(true), Json::Value(Json::arrayValue))); in JSONTEST_FIXTURE_LOCAL()
1715 Json::Value objVal(Json::objectValue); in JSONTEST_FIXTURE_LOCAL()
[all …]
A Djsontest.cpp167 Json::String TestResult::indentText(const Json::String& text, in indentText()
169 Json::String reindented; in indentText()
170 Json::String::size_type lastIndex = 0; in indentText()
173 if (nextIndex == Json::String::npos) { in indentText()
226 Json::String Runner::testNameAt(size_t index) const { in testNameAt()
228 Json::String name = test->testName(); in testNameAt()
306 Json::String opt = argv[index]; in runCommandLine()
407 Json::String ToJsonString(const char* toConvert) { in ToJsonString()
408 return Json::String(toConvert); in ToJsonString()
411 Json::String ToJsonString(Json::String in) { return in; } in ToJsonString()
[all …]
A Djsontest.h36 Json::String expr_;
37 Json::String message_;
69 void setTestName(const Json::String& name);
86 Json::OStringStream oss;
94 TestResult& operator<<(Json::Int64 value);
95 TestResult& operator<<(Json::UInt64 value);
102 static Json::String indentText(const Json::String& text,
107 Json::String name_;
154 Json::String testNameAt(size_t index) const;
187 Json::String ToJsonString(Json::String in);
[all …]
A Dfuzz.cpp14 namespace Json { namespace
19 Json::CharReaderBuilder builder; in LLVMFuzzerTestOneInput()
44 std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in LLVMFuzzerTestOneInput()
46 Json::Value root; in LLVMFuzzerTestOneInput()
50 } catch (Json::Exception const&) { in LLVMFuzzerTestOneInput()
/AliOS-Things-master/components/jsoncpp/src/jsontestrunner/
A Dmain.cpp24 Json::String path;
25 Json::Features features;
27 using writeFuncType = Json::String (*)(Json::Value const&);
35 Json::String s(buffer); in normalizeFloatingPointStr()
65 Json::String text; in readInputTestFile()
79 case Json::nullValue: in printValueTree()
82 case Json::intValue: in printValueTree()
182 static Json::String useStyledWriter(Json::Value const& root) { in useStyledWriter()
186 static Json::String useStyledStreamWriter(Json::Value const& root) { in useStyledStreamWriter()
211 static Json::String removeSuffix(const Json::String& path, in removeSuffix()
[all …]
/AliOS-Things-master/components/jsoncpp/example/
A Djsoncpp_comp_example.cpp24 Json::Value root; in jsoncpp_comp_read_stream_example()
28 Json::CharReaderBuilder builder; in jsoncpp_comp_read_stream_example()
52 Json::Value root; in jsoncpp_comp_write_stream_example()
53 Json::StreamWriterBuilder builder; in jsoncpp_comp_write_stream_example()
78 Json::Value root; in jsoncpp_comp_read_string_example()
81 Json::Reader reader; in jsoncpp_comp_read_string_example()
84 Json::CharReaderBuilder builder; in jsoncpp_comp_read_string_example()
117 Json::Value root; in jsoncpp_comp_write_string_example()
118 Json::Value data; in jsoncpp_comp_write_string_example()
125 Json::FastWriter writer; in jsoncpp_comp_write_string_example()
[all …]
/AliOS-Things-master/components/jsoncpp/example/stringWrite/
A DstringWrite.cpp16 Json::Value root; in main()
17 Json::Value data; in main()
24 Json::FastWriter writer; in main()
28 Json::StreamWriterBuilder builder; in main()
29 const std::string json_file = Json::writeString(builder, root); in main()
/AliOS-Things-master/components/jsoncpp/include/json/
A Dconfig.h107 namespace Json {
144 using JSONCPP_STRING = Json::String;
145 using JSONCPP_ISTRINGSTREAM = Json::IStringStream;
146 using JSONCPP_OSTRINGSTREAM = Json::OStringStream;
147 using JSONCPP_ISTREAM = Json::IStream;
148 using JSONCPP_OSTREAM = Json::OStream;
A Dreader.h28 namespace Json {
332 Json::Value settings_;
342 bool validate(Json::Value* invalid) const;
353 static void setDefaults(Json::Value* settings);
359 static void strictMode(Json::Value* settings);
A Dassertions.h26 Json::throwLogicError("assert json failed"); \
34 Json::throwLogicError(oss.str()); \
/AliOS-Things-master/components/jsoncpp/example/readFromString/
A DreadFromString.cpp17 Json::Value root; in main()
20 Json::Reader reader; in main()
23 Json::CharReaderBuilder builder; in main()
24 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in main()
/AliOS-Things-master/components/jsoncpp/example/streamWrite/
A DstreamWrite.cpp13 Json::Value root; in main()
14 Json::StreamWriterBuilder builder; in main()
15 const std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter()); in main()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/
A DUtils.cc249 Json::Value jsonObject; in MapToJson()
250 Json::FastWriter writer; in MapToJson()
261 Json::Reader reader; in JsonToMap()
262 Json::Value value; in JsonToMap()
267 Json::Value::Members members = value.getMemberNames(); in JsonToMap()
268 for (Json::Value::Members::iterator it = members.begin(); in JsonToMap()
270 Json::ValueType vt = value[*it].type(); in JsonToMap()
272 case Json::stringValue: { in JsonToMap()
277 case Json::intValue: { in JsonToMap()
283 case Json::arrayValue: { in JsonToMap()
/AliOS-Things-master/components/oss/src/external/json/
A Djson.h274 namespace Json {
340 namespace Json {
397 namespace Json {
511 namespace Json {
645 typedef Json::UInt UInt;
646 typedef Json::Int Int;
649 typedef Json::Int64 Int64;
1396 namespace Json {
1706 Json::Value settings_;
1822 namespace Json {
[all …]
A Djson-forwards.h240 namespace Json {
261 #define JSONCPP_STRING std::basic_string<char, std::char_traits<char>, Json::SecureAllocator…
262 #define JSONCPP_OSTRINGSTREAM std::basic_ostringstream<char, std::char_traits<char>, Json::SecureAl…
264 #define JSONCPP_ISTRINGSTREAM std::basic_istringstream<char, std::char_traits<char>, Json::SecureAl…
307 namespace Json {
/AliOS-Things-master/components/jsoncpp/doc/
A Djsoncpp.dox53 Json::Value root; // 'root' will contain the root value after parsing.
65 const Json::Value plugins = root["plug-ins"];
76 // necessary to explicitly construct the Json::Value object.
92 configuration, we use our own `Json::Value` (rather than
98 Json::StreamWriterBuilder wbuilder;
100 std::string document = Json::writeString(wbuilder, root);
104 Json::CharReaderBuilder rbuilder;
107 bool ok = Json::parseFromStream(rbuilder, std::cin, &root, &errs);
111 but `Json::Value` lets you
117 Json::CharReaderBuilder rbuilder;
[all …]
/AliOS-Things-master/components/oss/src/resumable/
A DResumableDownloader.cc119 Json::Value root; in Download()
250 Json::Value root; in prepare()
293 Json::Value root; in validateRecord()
329 Json::Value root; in loadRecord()
330 Json::CharReaderBuilder rbuilder; in loadRecord()
332 if (!Json::parseFromStream(rbuilder, *recordStream, &root, &errMsg)) in loadRecord()
347 Json::Value partValue = root["parts"][i]; in loadRecord()
355 if (root["rangeStart"] != Json::nullValue && root["rangeEnd"] != Json::nullValue) { in loadRecord()
359 else if(root["rangeStart"] == Json::nullValue && root["rangeEnd"] == Json::nullValue){ in loadRecord()
/AliOS-Things-master/components/jsoncpp/example/readFromStream/
A DreadFromStream.cpp17 Json::Value root; in main()
21 Json::CharReaderBuilder builder; in main()
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/facebody/src/model/
A DAddFaceEntityResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()
A DCreateFaceDbResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()
A DDeleteFaceDbResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()
A DUpdateFaceEntityResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()
A DDeleteFaceEntityResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()
A DDeleteFaceResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()
A DEnhanceFaceResult.cc38 Json::Reader reader; in parse()
39 Json::Value value; in parse()

Completed in 43 milliseconds

1234567