Tagged articles
1 articles
Page 1 of 1
Meituan Technology Team
Meituan Technology Team
Jan 5, 2018 · Mobile Development

Performance Optimization of JSON Serialization on Android: Replacing Gson with JSONObject and Mson

The article shows that replacing reflection‑heavy Gson with lightweight JSONObject for manual serialization and a compile‑time annotation‑processor generated library called Mson can cut JSON parsing and writing time to about one‑tenth, while maintaining compatibility and eliminating ProGuard rules for performance‑critical Android apps.

AndroidAnnotationProcessorGson
0 likes · 13 min read
Performance Optimization of JSON Serialization on Android: Replacing Gson with JSONObject and Mson