Skip to content

mironoff2007/json-serialization-deserialization-tests

Repository files navigation

json-serialization-deserialization-tests

Comparison of json deserialization:
-gson
-gson without annotations
-jackson (Strongly NOT recommended to use with android*)
-kotlinx
-moshi

  1. Deserialization of list with 50 objects-tree of 200 inner classes. *moshi can't deserialize more deep nested object than about 200, list of such objects is added to increase parse time, parse time of 1 object is too low)
  2. Deserialization of big geo json with coorinates of polylines. Json string for 2 cases is located in .json file approx. 1.3 Mb in raw resources.

Test devices

  1. Asus ZC500TG (Asus)
  2. Realme c25s (Realm)
  3. Emulator Pixel 4 api 29 (emu) (notebook i7-4600u, 16 gb ram)

Nested object test

GeoJson test

*Jackson has problems with android see FasterXML/jackson-module-kotlin#69

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages