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
Turn traffic into pipeline and prospects into customers
Docket is an AI-powered sales enablement platform designed to unify go-to-market (GTM) data through its proprietary Sales Knowledge Lake™ and activate it with intelligent AI agents. The platform helps marketing teams increase pipeline generation by 15% by engaging website visitors in human-like conversations and qualifying leads. For sales teams, Docket improves seller efficiency by 33% by providing instant product knowledge, retrieving collateral, and creating personalized documents. Built for GTM teams, Docket integrates with over 100 tools across the revenue tech stack and offers enterprise-grade security with SOC 2 Type II, GDPR, and ISO 27001 compliance. Customers report improved win rates, shorter sales cycles, and dramatically reduced response times. Docket’s scalable, accurate, and fast AI agents deliver reliable answers with confidence scores, empowering teams to close deals faster.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of jsoniter-scala!