You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.md
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ jsoniter (json-iterator) is fast and flexible JSON parser available in [Java](ht
10
10
* Jsoniter is the fastest JSON parser. It could be up to 10x faster than normal parser, data binding included. Shameless self [benchmark](/benchmark.html)
11
11
* Extremely flexible api. You can mix and match three different styles: bind-api, any-api or iterator-api. Checkout your [api choices](/api.html)
12
12
* Unique iterator api can iterate through JSON directly, zero memory allocation! See how [iterator](/api.html#iterator-api) works
13
+
* Every steps of the data binding process can be customized, checkout extension guide for [java](/java-extension.html) and [go](/go-extension.html) version
13
14
14
15
# Show off
15
16
@@ -36,6 +37,23 @@ int[] val = iter.read(int[].class);
36
37
System.out.println(val[3]);
37
38
```
38
39
40
+
You can also read into a existing object
41
+
42
+
```java
43
+
publicstaticclassTestObj1 {
44
+
publicString field1;
45
+
publicString field2;
46
+
}
47
+
48
+
TestObj1 testObj =newTestObj1();
49
+
testObj.field2 ="world";
50
+
JsonIterator iter =JsonIterator.parse("{ 'field1' : 'hello' }".replace('\'', '"'));
0 commit comments