/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/node/ |
D | EmptyContentAsTreeTest.java | 29 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 32 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 35 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 38 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 42 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 45 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 48 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 51 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 54 _assertNullTree(MAPPER.readTree(p)); in testNullFromEOFWithParserAndMapper() 62 _assertNullTree(MAPPER.reader().readTree(p)); in testNullFromEOFWithParserAndReader() [all …]
|
D | TreeReadViaMapperTest.java | 27 result = MAPPER.readTree(new StringReader(JSON)); in testSimple() 29 result = MAPPER.readTree(JSON); in testSimple() 119 JsonNode result = MAPPER.readTree(p); in testEOF() 124 assertNull(MAPPER.readTree(p)); in testEOF() 134 final JsonNode result = MAPPER.readTree(p); in testNullViaParser() 145 JsonNode result = mapper.readTree(p); in testMultiple() 152 result = mapper.readTree(p); in testMultiple() 158 result = mapper.readTree(p); in testMultiple() 162 assertNull(mapper.readTree(p)); in testMultiple()
|
D | TestTreeTraversingParser.java | 48 JsonNode tree = MAPPER.readTree(JSON); in testSimple() 113 JsonParser p = MAPPER.readTree("[]").traverse(); in testArray() 118 p = MAPPER.readTree("[[]]").traverse(); in testArray() 125 p = MAPPER.readTree("[[ 12.1 ]]").traverse(); in testArray() 140 JsonNode tree = MAPPER.readTree(JSON); in testNested() 171 JsonNode tree = MAPPER.readTree(SAMPLE_DOC_JSON_SPEC); in testSpecDoc() 245 JsonNode tree = MAPPER.readTree in testDataBind() 276 try (final JsonParser p = MAPPER.readTree("[ "+tooBig+" ]").traverse()) { in testNumberOverflowInt() 287 try (final JsonParser p = MAPPER.readTree("{ \"value\" : "+tooBig+" }").traverse()) { in testNumberOverflowInt() 301 try (final JsonParser p = MAPPER.readTree("[ "+tooBig2+" ]").traverse()) { in testNumberOverflowInt() [all …]
|
D | TestJsonPointer.java | 11 final JsonNode SAMPLE_ROOT = objectMapper().readTree(SAMPLE_DOC_JSON_SPEC); in testIt() 40 JsonNode root = objectMapper().readTree("{\"123\" : 456}"); in testLongNumbers() 45 root = objectMapper().readTree("{\"35361706045\" : 1234}"); in testLongNumbers()
|
D | TestTreeWithType.java | 40 JsonNode node = oc.readTree(jsonParser); in deserialize() 67 JsonNode jsonNode = MAPPER.readTree(json); in testValueAsStringWithoutDefaultTyping() 80 JsonNode jsonNode = mapper.readTree(json); in testValueAsStringWithDefaultTyping() 94 JsonNode jsonNode = mapper.readTree(json); in testReadTreeWithDefaultTyping()
|
D | TreeFromIncompleteJsonTest.java | 25 MAPPER.readTree(json); in testErrorHandling() 31 MAPPER.reader().readTree(json); in testErrorHandling()
|
D | TestNullNode.java | 67 JsonNode n = MAPPER.readTree("null"); in testNullHandling() 75 n = objectMapper().readTree("null"); in testNullHandling() 80 ObjectNode root = (ObjectNode) objectReader().readTree("{\"x\":null}"); in testNullHandling()
|
D | ToStringForNodesTest.java | 11 … _verifyToStrings(MAPPER.readTree("{ \"key\" : 1, \"b\" : \"x\", \"array\" : [ 1, false ] }")); in testObjectNode() 21 _verifyToStrings(MAPPER.readTree("[ 1, true, null, [ \"abc\",3], { } ]")); in testArrayNode()
|
D | NumberNodesTest.java | 46 JsonNode result = MAPPER.readTree(String.valueOf(value)); in testIntViaMapper() 127 JsonNode result = MAPPER.readTree(String.valueOf(value)); in testLongViaMapper() 173 JsonNode num = objectMapper().readTree(" -0.0"); in testDouble() 183 JsonNode result = MAPPER.readTree(String.valueOf(value)); in testDoubleViaMapper() 345 JsonNode n2 = mapper.readTree(maxLong.toString()); in testBigIntegerNode() 350 n2 = mapper.readTree(beyondLong.toString()); in testBigIntegerNode() 370 final JsonNode node = mapper.readTree(INPUT); in testBigDecimalAsPlain()
|
D | RequiredAccessorTest.java | 16 TEST_OBJECT = MAPPER.readTree(aposToQuotes( in RequiredAccessorTest() 21 TEST_ARRAY = MAPPER.readTree(aposToQuotes( in RequiredAccessorTest()
|
D | TestJsonNode.java | 45 JsonNode result = objectMapper().readTree("true\n"); in testBoolean() 183 JsonNode array = mapper.readTree("[ 1, 2 ]"); in testArrayWithDefaultTyping() 187 JsonNode obj = mapper.readTree("{ \"a\" : 2 }"); in testArrayWithDefaultTyping()
|
D | ObjectNodeTest.java | 77 JsonNode root = MAPPER.readTree(JSON); in testSimpleObject() 378 ObjectNode root = (ObjectNode) MAPPER.readTree(DUP_JSON); in testFailOnDupKeys() 383 MAPPER.reader(DeserializationFeature.FAIL_ON_READING_DUP_TREE_KEY).readTree(DUP_JSON); in testFailOnDupKeys() 426 JsonNode root = MAPPER.readTree("{ \"results\" : { \"a\" : 3 } }"); in testSimplePath()
|
D | TestConversions.java | 163 JsonNode root = mapper.readTree(JSON); in testTreeToValue() 248 JsonNode node = MAPPER.readTree(buf.asParser()); in testEmbeddedByteArray() 314 …JsonNode tree = MAPPER.readTree("{\"longObj\": "+EXP+".0, \"_class\": \""+LongContainer1940.class.… in testBufferedLongViaCoercion()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/validate/ |
D | FullStreamReadTest.java | 41 _verifyArray(MAPPER.readTree(JSON_OK_ARRAY)); in testMapperAcceptTrailing() 42 _verifyArray(MAPPER.readTree(JSON_OK_ARRAY_WITH_COMMENT)); in testMapperAcceptTrailing() 43 _verifyArray(MAPPER.readTree(JSON_FAIL_ARRAY)); in testMapperAcceptTrailing() 52 assertTrue(MAPPER.readTree(JSON_OK_NULL).isNull()); in testMapperAcceptTrailing() 53 assertTrue(MAPPER.readTree(JSON_OK_NULL_WITH_COMMENT).isNull()); in testMapperAcceptTrailing() 54 assertTrue(MAPPER.readTree(JSON_FAIL_NULL).isNull()); in testMapperAcceptTrailing() 69 _verifyArray(strict.readTree(JSON_OK_ARRAY)); in testMapperFailOnTrailing() 74 strict.readTree(JSON_FAIL_ARRAY); in testMapperFailOnTrailing() 99 strict.readTree(JSON_OK_ARRAY_WITH_COMMENT); in testMapperFailOnTrailing() 108 _verifyArray(strictWithComments.readTree(JSON_OK_ARRAY_WITH_COMMENT)); in testMapperFailOnTrailing() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/ |
D | ObjectWithCreator1261Test.java | 76 JsonNode tree = mapper.readTree(initialAnswerString); in testObjectIds1261() 81 JsonNode newTree = mapper.readTree(reserializedAnswerString); in testObjectIds1261()
|
/external/oss-fuzz/projects/jackson-dataformats-binary/ |
D | SmileFuzzer.java | 25 mapper.readTree(input); in fuzzerTestOneInput()
|
D | CborFuzzer.java | 25 mapper.readTree(input); in fuzzerTestOneInput()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/failing/ |
D | NumberNodes1770Test.java | 21 .readTree("7976931348623157e309"); in testBigDecimalCoercion()
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/ |
D | TreeCodec.java | 13 …public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException, JsonProcessingEx… in readTree() method in TreeCodec
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/misc/ |
D | ParsingContext2525Test.java | 86 JsonNode root = MAPPER.readTree(MINIMAL_ARRAY_DOC); in testSimpleArrayWithTree() 94 JsonNode root = MAPPER.readTree(MINIMAL_OBJECT_DOC); in testSimpleObjectWithTree() 102 JsonNode root = MAPPER.readTree(FULL_DOC); in testFullDocWithTree()
|
/external/oss-fuzz/projects/jackson-core/ |
D | JsonFuzzer.java | 40 mapper.readTree(data.consumeRemainingAsBytes()); in fuzzerTestOneInput()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/ |
D | TestDefaultForArrays.java | 76 JsonNode node = new ObjectMapper().readTree("{\"a\":3}"); in testNodeInArray() 99 JsonNode node = new ObjectMapper().readTree("{\"a\":[]}"); in testNodeInEmptyArray()
|
D | TestDefaultForTreeNodes.java | 32 JsonNode jsonNode = DEFAULT_MAPPER.readTree(json); in testValueAsStringWithDefaultTyping()
|
/external/jackson-databind/src/test/java/perf/ |
D | ManualReadPerfUntyped.java | 34 JsonNode input2 = m.readTree(data); in main()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/ |
D | Base64DecodingTest.java | 40 JsonNode tree = mapper.readTree(String.format("{\"foo\":\"%s\"}", value)); in _testInvalidBase64()
|