We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6ed7f7 commit cf31515Copy full SHA for cf31515
src/test/java/com/fasterxml/jackson/databind/node/TestJsonPointer.java
@@ -31,4 +31,19 @@ public void testIt() throws Exception
31
assertTrue(SAMPLE_ROOT.at("/Image/Depth").isMissingNode());
32
assertTrue(SAMPLE_ROOT.at("/Image/1").isMissingNode());
33
}
34
+
35
+ // To help verify [Core#133]; should be fine with "big numbers" as property keys
36
+ public void testLongNumbers() throws Exception
37
+ {
38
39
+ // First, with small int key
40
+ JsonNode root = objectMapper().readTree("{\"123\" : 456}");
41
+ JsonNode jn2 = root.at("/123");
42
+ assertEquals(456, jn2.asInt());
43
44
+ // and then with above int-32:
45
+ root = objectMapper().readTree("{\"35361706045\" : 1234}");
46
+ jn2 = root.at("/35361706045");
47
+ assertEquals(1234, jn2.asInt());
48
+ }
49
0 commit comments