Android gson streaming parser or android.util.jsonreader?

I am looking to use a streaming json parser in an Android application, and I am wondering whether to use gson or the android.util.jsonreader library. Assume licensing and version compatibility are not a problem, and I should prefer:

  • I process several MB of data.
  • JSON is mainly composed of compressed strings, so I don't need an Object to JSON mapping.
+5
source share
1 answer

It doesn't really matter: android.util.JsonReader and com.google.gson.stream.JsonReader are the same code. These two classes have the same API and the same behavior.

However, there are a few minor differences:

  • Android JsonReader Android 3.0 . Gson ja Android.
  • Gson , , . Android Android . .
+11

All Articles