Acela is a powerful and blazing-fast JSON parser and serializer with annotation processing backed by Jackson Streaming API.
This library is built on speed, performance, and approachability. Not only does it eliminate most boilerplate code for parsing JSON data into model classes and back to JSON, but also provides a very flexible and simple API to manage how data is parsed.
What sets this library apart:
- Built on speed, its faster than nearly anything out there.
// insert graph here
- Support for custom conversions from JSON
- Perform custom logic by listening for parse/serialize events using
SerializeListener
,ParseListener
or the more specificParseKeyListener
andSerializeKeyListener
- Support for merging different JSON sources together using the
@Mergeable
annotation. - Support for subclassing non-Translatable classes and parsing data into them using
@InheritedField
Will be up soon.
buildscript {
repositories {
jcenter()
}
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
}
allprojects {
repositories {
jcenter()
}
}
Add the library to the project-level build.gradle, and use the apt plugin:
apply plugin: 'com.neenbedankt.android-apt'
dependencies {
compile "com.andrewgrosner.acela:library:1.0.0"
}
For more detailed usage, check out these sections: