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: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Parse with Java bind-api
20
20
21
21
```java
22
22
importcom.jsoniter.JsonIterator;
23
-
Jsoniter iter =JsonIterator.parse("[0,1,2,3]");
23
+
JsonIterator iter =JsonIterator.parse("[0,1,2,3]");
24
24
int[] val = iter.read(int[].class);
25
25
System.out.println(val[3]);
26
26
```
@@ -33,7 +33,7 @@ Parse with Java iterator-api
33
33
34
34
```java
35
35
importcom.jsoniter.JsonIterator;
36
-
Jsoniter iter =JsonIterator.parse("[0, [1, 2], [3, 4], 5]");
36
+
JsonIterator iter =JsonIterator.parse("[0, [1, 2], [3, 4], 5]");
37
37
int count =0;
38
38
while(iter.readArray()) {
39
39
iter.skip();
@@ -48,7 +48,7 @@ Parse with Java any-api
48
48
49
49
```java
50
50
importcom.jsoniter.JsonIterator;
51
-
Jsoniter iter =JsonIterator.parse("[{'field1':'11','field2':'12'},{'field1':'21','field2':'22'}]".replace('\'', '"'));
51
+
JsonIterator iter =JsonIterator.parse("[{'field1':'11','field2':'12'},{'field1':'21','field2':'22'}]".replace('\'', '"'));
52
52
Any val = iter.readAny();
53
53
System.out.println(val.toInt(1, "field2")); // 22
54
54
```
@@ -67,4 +67,4 @@ Notice you can extract from nested data structure, and convert any type to the t
67
67
68
68
# Contribution Welcomed !
69
69
70
-
Report issue or pull request, or email taowen@gmail.com, or [](https://gitter.im/json-iterator/Lobby)
70
+
Report issue or pull request, or email taowen@gmail.com, or [](https://gitter.im/json-iterator/Lobby)
0 commit comments