3 ms·
How does this compare to loading up a String of json in an org.json.JSONObject and parsing it manually? For some further abstraction/encapsulation, you can ext
by dozy 12y ago
How does this compare to loading up a String of json in an org.json.JSONObject and parsing it manually?
For some further abstraction/encapsulation, you can extend the JSONObject class and provide getters/settings for particular key/values.
- tonytung 12y agoThe two are not really comparable since you get different results (JSONObjects are not strongly typed). You will easily be able to find workloads where one is better than the other, but in the average case, ig-json-parser will probably be faster because it's based on Jackson. (see json/jackson/manual vs json/org.json/manual on https://github.com/eishay/jvm-serializers/wiki https://github.com/eishay/jvm-serializers/wiki)