Scala macros for compile-time generation of safe and ultra-fast JSON codecs. This library had started from macros that reused jsoniter (json-iterator) for Java reader and writer but then the library evolved to have its own core of mechanics for parsing and serialization. The idea to generate codecs by Scala macros and main details was borrowed from Kryo Macros and adapted for the needs of the JSON domain. Validate parsed values safely with the fail-fast approach and clear reporting, provide configurable limits for suboptimal data structures with safe defaults to be resilient for DoS attacks, generate codecs that create instances of a fixed set of classes during parsing to avoid RCE attacks.
Features
- JSON parsing from String
- Parsing of streaming JSON values and JSON arrays from java.io.InputStream/java.io.FileInputStream
- Only UTF-8 encoding is supported when working with buffered bytes directly
- Non-case Scala classes also supported
- Core module support reading and writing byte arrays from/to Base16 and Base64 representations
- Type aliases are supported
- Only acyclic graphs of class instances are supported by generated codecs
Categories
JSONLicense
MIT LicenseFollow jsoniter-scala
Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects
Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of jsoniter-scala!