A screaming fast JSON parsing and serialization library for Android using compile-time annotation processing.
LoganSquare is a JSON parsing and serialization library specifically designed for Android applications. It solves the performance bottlenecks of JSON processing by using compile-time annotation processing to generate optimized code, making it significantly faster than traditional reflection-based libraries like GSON and Jackson Databind.
Android developers who need high-performance JSON processing in their apps, particularly those working with large JSON payloads or performance-sensitive applications.
Developers choose LoganSquare because it delivers up to 400% better performance than GSON and Jackson Databind while maintaining a simple annotation-based API. The compile-time code generation eliminates reflection overhead and produces optimized parsing/serialization logic.
Screaming fast JSON parsing and serialization library for Android.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Outperforms GSON and Jackson Databind by 400% or more on ART runtime, as verified by benchmarks on devices like the Moto X.
Uses annotation processing to generate efficient parsing and serialization code at compile time, eliminating reflection overhead and boosting speed.
Annotate model classes with @JsonObject and fields with @JsonField for automatic JSON mapping, making integration straightforward.
The core library is only 19KB, minimizing app footprint and keeping APK size small.
Requires Gradle with the android-apt plugin for annotation processing, adding build complexity and limiting compatibility with other build systems like Maven or Bazel.
Relies on pre-defined model classes with annotations, making it unsuitable for dynamic JSON structures or schema evolution at runtime.
To prevent removal of generated classes, specific Proguard rules must be added, which can be error-prone and require manual maintenance.