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

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow jsoniter-scala

jsoniter-scala Web Site

You Might Also Like
Easy-to-use online form builder for every business. Icon
Easy-to-use online form builder for every business.

Create online forms and publish them. Get an email for each response. Collect data.

Easy-to-use online form builder for every business. Create online forms and publish them. Get an email for each response. Collect data. Design professional looking forms with JotForm Online Form Builder. Customize with advanced styling options to match your branding. Speed up and simplify your daily work by automating complex tasks with JotForm’s industry leading features. Securely and easily sell products. Collect subscription fees and donations. Being away from your computer shouldn’t stop you from getting the information you need. No matter where you work, JotForm Mobile Forms lets you collect data offline with powerful forms you can manage from your phone or tablet. Get the full power of JotForm at your fingertips. JotForm PDF Editor automatically turns collected form responses into professional, secure PDF documents that you can share with colleagues and customers. Easily generate custom PDF files online!
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of jsoniter-scala!

Additional Project Details

Programming Language

Scala

Related Categories

Scala JSON Software

Registered

2023-10-20