Home
last modified time | relevance | path

Searched refs:ParseJson (Results 1 – 18 of 18) sorted by relevance

/third_party/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs81 Assert.AreEqual(expected, TestAllTypes.Parser.ParseJson(json)); in OriginalFieldNameAccepted()
200 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
207 Assert.AreEqual(new TestAllTypes(), TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullOverallValueAllowed()
216 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
223 Assert.AreEqual(new TestMap(), TestMap.Parser.ParseJson(json)); in MapField_NullOverallValueAllowed()
229 … Assert.AreEqual(new StringValue { Value = "foo" }, StringValue.Parser.ParseJson("\"foo\"")); in IndividualWrapperTypes()
230 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("1")); in IndividualWrapperTypes()
232 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("\"1\"")); in IndividualWrapperTypes()
253 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToInt32_Valid()
272 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs79 Assert.AreEqual(expected, TestAllTypes.Parser.ParseJson(json)); in OriginalFieldNameAccepted()
198 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullElementProhibited()
205 Assert.AreEqual(new TestAllTypes(), TestAllTypes.Parser.ParseJson(json)); in RepeatedField_NullOverallValueAllowed()
214 Assert.Throws<InvalidProtocolBufferException>(() => TestMap.Parser.ParseJson(json)); in MapField_NullValueProhibited()
221 Assert.AreEqual(new TestMap(), TestMap.Parser.ParseJson(json)); in MapField_NullOverallValueAllowed()
227 … Assert.AreEqual(new StringValue { Value = "foo" }, StringValue.Parser.ParseJson("\"foo\"")); in IndividualWrapperTypes()
228 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("1")); in IndividualWrapperTypes()
230 Assert.AreEqual(new Int32Value { Value = 1 }, Int32Value.Parser.ParseJson("\"1\"")); in IndividualWrapperTypes()
251 var parsed = TestAllTypes.Parser.ParseJson(json); in StringToInt32_Valid()
270 … Assert.Throws<InvalidProtocolBufferException>(() => TestAllTypes.Parser.ParseJson(json)); in StringToInt32_Invalid()
[all …]
/third_party/grpc/src/cpp/server/channelz/
Dchannelz_service.cc30 grpc::protobuf::util::Status ParseJson(const char* json_str, in ParseJson() function
48 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetTopChannels()
64 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetServers()
80 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetServer()
98 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetServerSockets()
113 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetChannel()
130 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetSubchannel()
145 grpc::protobuf::util::Status s = ParseJson(json_str, response); in GetSocket()
/third_party/grpc/test/cpp/qps/
Dparse_json.h28 void ParseJson(const std::string& json, const std::string& type,
Dparse_json.cc30 void ParseJson(const std::string& json, const std::string& type, in ParseJson() function
Dqps_json_driver.cc262 ParseJson(json.c_str(), "grpc.testing.Scenarios", &scenarios); in QpsDriver()
/third_party/mindspore/mindspore/ccsrc/utils/
Djson_operation_utils.cc23 bool ParseJson(const std::string &str, nlohmann::json *des_json) { in ParseJson() function
Djson_operation_utils.h43 bool ParseJson(const std::string &str, nlohmann::json *des_json);
/third_party/protobuf/csharp/src/Google.Protobuf/
DMessageParser.cs166 public IMessage ParseJson(string json) in ParseJson() method in Google.Protobuf.MessageParser
353 public new T ParseJson(string json) in ParseJson() method in Google.Protobuf.MessageParser
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/
Dtbe_utils.cc404 if (!ParseJson(ori_file, &read_new_json)) { in GetCompileInfo()
409 if (!ParseJson(build_res_str, &build_res_json)) { in GetCompileInfo()
430 if (!ParseJson(ori_file, &save_new_json)) { in SaveCompileInfo()
Dascend_kernel_compile.cc110 if (!ParseJson(message, &exception_message)) { in ReportToErrorManager()
321 if (!ParseJson(GetJsonValue<std::string>(json, kResult), &query_result)) { in QueryResultProcess()
344 if (!ParseJson(string, &json)) { in TurnStrToJson()
360 if (!ParseJson(GetJsonValue<std::string>(json_obj, kResult), &query_obj)) { in ParseTargetJobStatus()
Dtbe_kernel_parallel_build.cc156 if (!ParseJson(pre_build_result, &result)) { in PreTaskFinishProcess()
/third_party/flatbuffers/tests/fuzzer/
Dflatbuffers_monster_fuzzer.cc79 if (parser.ParseJson(input_json.c_str())) { in do_test()
Dflatbuffers_scalar_fuzzer.cc219 auto done = parser.ParseJson(json.c_str()); in Parse()
/third_party/flatbuffers/tests/
Dtest.cpp837 TEST_EQ(parser.ParseJson(jsonfile.c_str()), true); in ParseAndGenerateTextTest()
3842 TEST_EQ(parser.ParseJson("{name:\"monster\"}"), true); in ParseIncorrectMonsterJsonTest()
3843 TEST_EQ(parser.ParseJson(""), false); in ParseIncorrectMonsterJsonTest()
3844 TEST_EQ(parser.ParseJson("{name: 1}"), false); in ParseIncorrectMonsterJsonTest()
3845 TEST_EQ(parser.ParseJson("{name:+1}"), false); in ParseIncorrectMonsterJsonTest()
3846 TEST_EQ(parser.ParseJson("{name:-1}"), false); in ParseIncorrectMonsterJsonTest()
3847 TEST_EQ(parser.ParseJson("{name:-f}"), false); in ParseIncorrectMonsterJsonTest()
3848 TEST_EQ(parser.ParseJson("{name:+f}"), false); in ParseIncorrectMonsterJsonTest()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_select/
Dtbe_kernel_select.cc515 if (!ParseJson(op_seclect_json, &json_obj)) { in CreateNewOpInfo()
/third_party/flatbuffers/include/flatbuffers/
Didl.h839 bool ParseJson(const char *json, const char *json_filename = nullptr);
/third_party/flatbuffers/src/
Didl_parser.cpp3143 bool Parser::ParseJson(const char *json, const char *json_filename) { in ParseJson() function in flatbuffers::Parser