| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go
Here is a quick show off, for more complete report you can checkout the full benchmark with in-depth optimization to back the numbers up
Given this JSON document [0,1,2,3]
Parse with Java bind-api
import com.jsoniter.Jsoniter;
Jsoniter iter = Jsoniter.parse("[0,1,2,3]");
int[] val = iter.read(int[].class);
System.out.println(val[3]);Parse with Java any-api
import com.jsoniter.Jsoniter;
Jsoniter iter = Jsoniter.parse("[0,1,2,3]");
Any val = iter.readAny();
System.out.println(any.get(3));Parse with Java iterator-api
import com.jsoniter.Jsoniter;
Jsoniter iter = Jsoniter.parse("[0,1,2,3]");
int total = 0;
while(iter.readArray()) {
total += iter.readInt();
}
System.out.println(total);<dependency>
<groupId>com.jsoniter</groupId>
<artifactId>jsoniter</artifactId>
<version>0.9.1</version>
</dependency>
Report issue or pull request, or email taowen@gmail.com, or
| Back | FazBrowse Home | New Git URL |