Home
last modified time | relevance | path

Searched defs:json (Results 1 – 25 of 513) sorted by relevance

12345678910>>...21

/external/jackson-core/src/test/java/com/fasterxml/jackson/core/read/
DTrailingCommasTest.java50 String json = "[\"a\", \"b\"]"; in testArrayBasic() local
68 String json = "[\"a\",, \"b\"]"; in testArrayInnerComma() local
93 String json = "[,\"a\", \"b\"]"; in testArrayLeadingComma() local
119 String json = "[\"a\", \"b\",]"; in testArrayTrailingComma() local
147 String json = "[\"a\", \"b\",,]"; in testArrayTrailingCommas() local
178 String json = "[\"a\", \"b\",,,]"; in testArrayTrailingCommasTriple() local
211 String json = "{\"a\": true, \"b\": false}"; in testObjectBasic() local
232 String json = "{\"a\": true,, \"b\": false}"; in testObjectInnerComma() local
248 String json = "{,\"a\": true, \"b\": false}"; in testObjectLeadingComma() local
260 String json = "{\"a\": true, \"b\": false,}"; in testObjectTrailingComma() local
[all …]
/external/angle/src/libANGLE/capture/
Dframe_capture_utils.cpp244 GroupScope(JsonSerializer *json, const std::string &name) : mJson(json) in GroupScope()
249 GroupScope(JsonSerializer *json, const std::string &name, int index) : mJson(json) in GroupScope()
257 GroupScope(JsonSerializer *json, int index) : GroupScope(json, "", index) {} in GroupScope()
265 void SerializeColorF(JsonSerializer *json, const ColorF &color) in SerializeColorF()
273 void SerializeColorFWithGroup(JsonSerializer *json, const char *groupName, const ColorF &color) in SerializeColorFWithGroup()
279 void SerializeColorI(JsonSerializer *json, const ColorI &color) in SerializeColorI()
287 void SerializeColorUI(JsonSerializer *json, const ColorUI &color) in SerializeColorUI()
295 void SerializeExtents(JsonSerializer *json, const gl::Extents &extents) in SerializeExtents()
304 JsonSerializer *json, in SerializeOffsetBindingPointerVector()
321 JsonSerializer *json, in SerializeBindingPointerVector()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs66 public void StringValue(string json, string expectedValue) in StringValue()
158 public void InvalidStringValue(string json) in InvalidStringValue()
189 public void NumberValue(string json, double expectedValue) in NumberValue()
204 public void InvalidNumberValue(string json) in InvalidNumberValue()
214 public void InvalidLiterals(string json) in InvalidLiterals()
272 public void InvalidStructure(string json, int expectedValidTokens) in InvalidStructure()
360 public void SkipValue(string json) in SkipValue()
376 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
388 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
408 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonTokenizerTest.cs66 public void StringValue(string json, string expectedValue) in StringValue()
158 public void InvalidStringValue(string json) in InvalidStringValue()
189 public void NumberValue(string json, double expectedValue) in NumberValue()
204 public void InvalidNumberValue(string json) in InvalidNumberValue()
214 public void InvalidLiterals(string json) in InvalidLiterals()
272 public void InvalidStructure(string json, int expectedValidTokens) in InvalidStructure()
360 private static void AssertTokens(string json, params JsonToken[] expectedTokens) in AssertTokens()
372 … private static void AssertTokensNoReplacement(string json, params JsonToken[] expectedTokens) in AssertTokensNoReplacement()
392 private static void AssertThrowsAfter(string json, params JsonToken[] expectedTokens) in AssertThrowsAfter()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/json/
Djson_util.h44 inline bool ExtractJsonNumber(const Json& json, const std::string& field_name, in ExtractJsonNumber()
63 inline bool ExtractJsonBool(const Json& json, const std::string& field_name, in ExtractJsonBool()
81 inline bool ExtractJsonString(const Json& json, const std::string& field_name, in ExtractJsonString()
96 inline bool ExtractJsonArray(const Json& json, const std::string& field_name, in ExtractJsonArray()
111 inline bool ExtractJsonObject(const Json& json, const std::string& field_name, in ExtractJsonObject()
126 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
132 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
138 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
144 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
151 inline bool ExtractJsonType(const Json& json, const std::string& field_name, in ExtractJsonType()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/struct/
DFormatFeatureAcceptSingleTest.java83 String json = aposToQuotes( in testSingleStringArrayRead() local
101 String json = aposToQuotes( in testSingleIntArrayRead() local
110 String json = aposToQuotes( in testSingleLongArrayRead() local
119 String json = aposToQuotes( in testSingleBooleanArrayRead() local
128 String json = aposToQuotes( in testSingleDoubleArrayRead() local
137 String json = aposToQuotes( in testSingleFloatArrayRead() local
146 String json = aposToQuotes( in testSingleElementArrayRead() local
155 String json = aposToQuotes( in testSingleStringListRead() local
164 String json = aposToQuotes( in testSingleElementListRead() local
/external/wpa_supplicant_8/src/utils/
Djson.c481 void json_free(struct json_token *json) in json_free()
493 struct json_token * json_get_member(struct json_token *json, const char *name) in json_get_member()
508 struct wpabuf * json_get_member_base64url(struct json_token *json, in json_get_member_base64url()
531 struct wpabuf * json_get_member_base64(struct json_token *json, in json_get_member_base64()
603 void json_add_int(struct wpabuf *json, const char *name, int val) in json_add_int()
609 void json_add_string(struct wpabuf *json, const char *name, const char *val) in json_add_string()
615 int json_add_string_escape(struct wpabuf *json, const char *name, in json_add_string_escape()
631 int json_add_base64url(struct wpabuf *json, const char *name, const void *val, in json_add_base64url()
645 int json_add_base64(struct wpabuf *json, const char *name, const void *val, in json_add_base64()
659 void json_start_object(struct wpabuf *json, const char *name) in json_start_object()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/
DBuilderDeserializationTest2486.java108 final String json = aposToQuotes("{ 'index': 123 }"); in testPOJOWithArrayCreatorFromObjectRepresentation() local
114 final String json = "[123]"; in testPOJOWithArrayCreatorFromArrayRepresentation() local
120 final String json = aposToQuotes("{ 'index': 123 }"); in testPOJOWithPrimitiveCreatorFromObjectRepresentation() local
126 final String json ="123"; in testPOJOWithPrimitiveCreatorFromPrimitiveRepresentation() local
138 final String json = aposToQuotes("{ 'index': 123 }"); in testPOJOBuilderWithArrayCreatorFromObjectRepresentation() local
144 final String json = "[123]"; in testPOJOBuilderWithArrayCreatorFromArrayRepresentation() local
150 final String json = aposToQuotes("{ 'index': 123 }"); in testPOJOBuilderWithPrimitiveCreatorFromObjectRepresentation() local
156 final String json = "123"; in testPOJOBuilderWithPrimitiveCreatorFromPrimitiveRepresentation() local
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/
DTestListInstrumentationRunListenerTest.java44 JSONObject json = getTestMethodJSON(desc); in testGetTestMethodJSON_testA() local
61 JSONObject json = getTestMethodJSON(desc); in testGetTestMethodJSON_testB() local
83 JSONObject json = getTestMethodJSON(desc); in testGetTestMethodJSONForInheritedClass() local
101 JSONObject json = getAnnotationJSON(Arrays.asList(ParentClass.class.getAnnotations())); in testGetAnnotationJSONForParentClass() local
111 JSONObject json = getAnnotationJSON(Arrays.asList(ChildClass.class.getAnnotations())); in testGetAnnotationJSONForChildClass() local
/external/libchrome/base/trace_event/
Dtrace_event_argument_unittest.cc24 std::string json = "PREFIX"; in TEST() local
37 std::string json; in TEST() local
64 std::string json; in TEST() local
92 std::string json; in TEST() local
125 std::string json; in TEST() local
146 std::string json; in TEST() local
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/
DTestDefaultForArrays.java54 String json = m.writeValueAsString(bean); in testArrayTypingSimple() local
68 String json = m.writeValueAsString(bean); in testArrayTypingNested() local
82 String json = m.writeValueAsString(obs); in testNodeInArray() local
96 String json = m.writeValueAsString(tree); in testNodeInEmptyArray() local
127 String json = mapper.writeValueAsString(value); in testArraysOfArrays() local
153 String json = mapper.writeValueAsString(input); in _testArrayTypingForPrimitiveArrays() local
165 protected void _testArraysAs(ObjectMapper mapper, String json, Class<?> type) in _testArraysAs()
DTestDefaultForScalars.java75 String json = DEFAULT_TYPING_MAPPER.writeValueAsString(new Object[] { c }); in testDateScalars() local
104 String json = m.writeValueAsString(input); in testScalarArrays() local
115 String json = DEFAULT_TYPING_MAPPER.writeValueAsString(input); in test417() local
141 String json = mapper.writeValueAsString(mapData); in testDefaultTypingWithLong() local
153 final String json = DEFAULT_TYPING_MAPPER.writeValueAsString(INPUT); in testDefaultTypingWithNaN() local
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/convert/
DCoercePojosTest.java81 private void _testPOJOFromEmptyGlobalConfig(final CoercionInputShape shape, final String json, in _testPOJOFromEmptyGlobalConfig()
107 …private void _testPOJOFromEmptyLogicalTypeConfig(final CoercionInputShape shape, final String json, in _testPOJOFromEmptyLogicalTypeConfig()
135 …rivate void _testPOJOFromEmptyPhysicalTypeConfig(final CoercionInputShape shape, final String json, in _testPOJOFromEmptyPhysicalTypeConfig()
162 private Bean _verifyFromEmptyPass(ObjectMapper m, String json) throws Exception { in _verifyFromEmptyPass()
166 private Bean _verifyFromEmptyPass(ObjectReader r, String json) throws Exception in _verifyFromEmptyPass()
172 private void _verifyFromEmptyFail(ObjectMapper m, String json) throws Exception in _verifyFromEmptyFail()
DTestConvertingSerializer.java176 String json = objectWriter().writeValueAsString(new ConvertingBean(1, 2)); in testClassAnnotationSimple() local
182 String json = objectWriter().writeValueAsString(new ConvertingBeanContainer( in testClassAnnotationForLists() local
189 String json = objectWriter().writeValueAsString(new PointWrapper(3, 4)); in testPropertyAnnotationSimple() local
194 String json = objectWriter().writeValueAsString(new PointListWrapperArray(4, 5)); in testPropertyAnnotationForArrays() local
199 String json = objectWriter().writeValueAsString(new PointListWrapperList(7, 8)); in testPropertyAnnotationForLists() local
204 String json = objectWriter().writeValueAsString(new PointListWrapperMap("a", 1, 2)); in testPropertyAnnotationForMaps() local
210 String json = objectWriter().writeValueAsString(new ListWrapper()); in testConverterForList357() local
216 String json = objectWriter().writeValueAsString(new Bean359()); in testIssue359() local
223 … String json = objectWriter().writeValueAsString(new ConvertingBeanWithUntypedConverter(1, 2)); in testIssue731() local
/external/rust/crates/grpcio-sys/grpc/src/core/ext/xds/
Dxds_bootstrap.cc160 Json json = Json::Parse(contents_str_view, error); in ReadFromFile() local
180 XdsBootstrap::XdsBootstrap(Json json, grpc_error** error) { in XdsBootstrap()
224 grpc_error* XdsBootstrap::ParseXdsServerList(Json* json) { in ParseXdsServerList()
240 grpc_error* XdsBootstrap::ParseXdsServer(Json* json, size_t idx) { in ParseXdsServer()
286 grpc_error* XdsBootstrap::ParseChannelCredsArray(Json* json, in ParseChannelCredsArray()
307 grpc_error* XdsBootstrap::ParseChannelCreds(Json* json, size_t idx, in ParseChannelCreds()
353 grpc_error* XdsBootstrap::ParseServerFeaturesArray(Json* json, in ParseServerFeaturesArray()
375 grpc_error* XdsBootstrap::ParseNode(Json* json) { in ParseNode()
419 grpc_error* XdsBootstrap::ParseLocality(Json* json) { in ParseLocality()
452 grpc_error* XdsBootstrap::ParseCertificateProviders(Json* json) { in ParseCertificateProviders()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/
DTestRootType.java94 String json = w.writeValueAsString(bean); in testSuperClass() local
108 String json = w.writeValueAsString(bean); in testSuperInterface() local
122 String json = mapper.writerFor(BaseInterface[].class).writeValueAsString(ob); in testInArray() local
164 String json = mapper.writerFor(collectionType).writeValueAsString(typedList); in testJackson398() local
177 String json = WRAP_ROOT_MAPPER.writeValueAsString(new StringWrapper("abc")); in testRootWrapping() local
196 String json = WRAP_ROOT_MAPPER.writeValueAsString(new WithRootName()); in testRootNameAnnotation() local
208 String json = writer.writeValueAsString(cmd); in testRootNameWithExplicitType() local
DTestArraySerialization.java39 String json = MAPPER.writeValueAsString(new int[] { 1, 2, 3, -7 }); in testIntArray() local
69 String json = MAPPER.writeValueAsString(new long[] { Long.MIN_VALUE, 0, Long.MAX_VALUE }); in testLongArray() local
83 …String json = MAPPER.writeValueAsString(new double[] { 1.01, 2.0, -7, Double.NaN, Double.NEGATIVE_… in testDoubleArray() local
89 …String json = MAPPER.writeValueAsString(new float[] { 1.01f, 2.0f, -7f, Float.NaN, Float.NEGATIVE_… in testFloatArray() local
DAnyGetterTest.java176 String json = MAPPER.writeValueAsString(new Bean()); in testSimpleAnyBean() local
190 String json = serializeAsString(m, new AnyOnlyBean()); in testAnyOnly() local
202 String json = MAPPER.writeValueAsString(new NotEvenAnyBean()); in testAnyDisabling() local
218 String json = MAPPER.writeValueAsString(input); in testIssue705() local
228 String json = mapper.writeValueAsString(input); in testAnyGetterWithValueSerializer() local
241 String json = mapper.writeValueAsString(input); in testAnyGetterWithMapperDefaultIncludeNonEmpty() local
257 String json = mapper.writeValueAsString(input); in testAnyGetterWithMapperDefaultIncludeNonEmptyAndFilterOnBean() local
270 String json = mapper.writeValueAsString(input); in testAnyGetterWithPropertyIncludeNonEmpty() local
286 String json = mapper.writeValueAsString(input); in testAnyGetterConfigIncludeNonEmpty() local
DTestMapSerialization.java108 String json = w.writeValueAsString(map); in testUsingObjectWriter() local
174 String json = MAPPER.writeValueAsString(input); in testOrderByKeyViaProperty() local
182 String json = MAPPER.writeValueAsString(input); in testMapEntry() local
200 String json = MAPPER.writeValueAsString(input); in testMapEntryWrapper() local
211 String json = MAPPER.writeValueAsString(input); in testNullJsonMapping691() local
224 String json = mapper.writeValueAsString(map); in testNullJsonInTypedMap691() local
236 String json = w.writeValueAsString(input); in testConcurrentMaps() local
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/async/
DAsyncMissingValuesInObjectTest.java43 String json = "{\"a\": true, \"b\": false}"; in testObjectBasic() local
64 String json = "{\"a\": true,, \"b\": false}"; in testObjectInnerComma() local
80 String json = "{,\"a\": true, \"b\": false}"; in testObjectLeadingComma() local
92 String json = "{\"a\": true, \"b\": false,}"; in testObjectTrailingComma() local
117 String json = "{\"a\": true, \"b\": false,,}"; in testObjectTrailingCommas() local
DAsyncMissingValuesInArrayTest.java64 String json = "[\"a\",, \"b\"]"; in testArrayInnerComma() local
89 String json = "[,\"a\", \"b\"]"; in testArrayLeadingComma() local
115 String json = "[\"a\", \"b\",]"; in testArrayTrailingComma() local
143 String json = "[\"a\", \"b\",,]"; in testArrayTrailingCommas() local
174 String json = "[\"a\", \"b\",,,]"; in testArrayTrailingCommasTriple() local
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/ser/jdk/
DJDKTypeSerializationTest.java104 String json = mapper.writeValueAsString(input); in testInetAddress() local
105 assertEquals(quote(input.getHostAddress()), json); in testInetAddress() local
198 String json = MAPPER.writeValueAsString(uuid); in testUUIDs() local
199 assertEquals(quote(uuid.toString()), json); in testUUIDs() local
214 String json = MAPPER.writeValueAsString(uuid); in testUUIDs() local
215 assertEquals(quote(uuid.toString()), json); in testUUIDs() local
233 String json = MAPPER.writeValueAsString(properties); in testNonStandardProperties() local
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java404 public void merge(String json, Message.Builder builder) throws InvalidProtocolBufferException { in merge()
417 public void merge(Reader json, Message.Builder builder) throws IOException { in merge()
1235 void merge(Reader json, Message.Builder builder) throws IOException { in merge()
1255 void merge(String json, Message.Builder builder) throws InvalidProtocolBufferException { in merge()
1269 void merge(ParserImpl parser, JsonElement json, Message.Builder builder) in merge()
1283 public void merge(ParserImpl parser, JsonElement json, Message.Builder builder) in buildWellKnownTypeParsers()
1311 public void merge(ParserImpl parser, JsonElement json, Message.Builder builder) in buildWellKnownTypeParsers()
1321 public void merge(ParserImpl parser, JsonElement json, Message.Builder builder) in buildWellKnownTypeParsers()
1331 public void merge(ParserImpl parser, JsonElement json, Message.Builder builder) in buildWellKnownTypeParsers()
1341 public void merge(ParserImpl parser, JsonElement json, Message.Builder builder) in buildWellKnownTypeParsers()
[all …]
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/vld/
DValidatePolymSubTypeTest.java272 final String json = mapper.writeValueAsString(new DefTypeWrapper(input)); in _roundTripDefault() local
277 final String json = mapper.writeValueAsString(new AnnotatedWrapper(input)); in _roundTripAnnotated() local
282 final String json = mapper.writeValueAsString(new AnnotatedMinimalWrapper(input)); in _roundTripAnnotatedMinimal() local
293 final String json = mapper.writeValueAsString(new DefTypeWrapper(new BadValue())); in _verifyBadDefaultValue() local
298 final String json = mapper.writeValueAsString(new DefTypeWrapper(new MehValue())); in _verifyMehDefaultValue() local
303 final String json = mapper.writeValueAsString(new AnnotatedWrapper(new BadValue())); in _verifyBadAnnotatedValue() local
308 final String json = mapper.writeValueAsString(new AnnotatedWrapper(new MehValue())); in _verifyMehAnnotatedValue() local
313 final String json = mapper.writeValueAsString(new AnnotatedMinimalWrapper(new BadValue())); in _verifyBadAnnotatedMinValue() local
318 final String json = mapper.writeValueAsString(new AnnotatedMinimalWrapper(new MehValue())); in _verifyMehAnnotatedMinValue() local
322 private void _verifyBadValue(ObjectMapper mapper, String json, Class<?> type) throws Exception { in _verifyBadValue()
[all …]
DBasicPTVTest.java91 final String json = mapper.writeValueAsString(BaseValueWrapper.withA(42)); in testAllowByBaseClass() local
126 final String json = mapper.writeValueAsString(BaseValueWrapper.withA(42)); in testAllowByBaseClassPrefix() local
151 final String json = mapper.writeValueAsString(BaseValueWrapper.withA(42)); in testAllowByBaseClassPattern() local
177 final String json = mapper.writeValueAsString(new ObjectWrapper(new ValueA(15))); in testDenyByBaseClass() local
203 final String json = mapper.writeValueAsString(BaseValueWrapper.withB(42)); in testAllowBySubClass() local
227 final String json = mapper.writeValueAsString(BaseValueWrapper.withB(42)); in testAllowBySubClassPrefix() local
251 final String json = mapper.writeValueAsString(BaseValueWrapper.withB(42)); in testAllowBySubClassPattern() local

12345678910>>...21