A blazing-fast JSON parser and generator in pure Elixir. The parser and generator are at least twice as fast as other Elixir/Erlang libraries (most notably Poison). The performance is comparable to jiffy, which is implemented in C as a NIF. Jason is usually only twice as slow. Both the parser and generator fully conform to RFC 8259 and ECMA 404 standards. The parser is tested using JSONTestSuite. The package can be installed by adding jason to your list of dependencies in mix.exs. Jason follows the JSON spec more strictly, for example, it does not allow unescaped newline characters in JSON strings - e.g. "\"\n\"" will produce a decoding error. No support for decoding into data structures (the as: option). No built-in encoders for MapSet, Range and Stream. No support for encoding arbitrary structs - explicit implementation of the Jason.Encoder protocol is always required. Different pretty-printing customization options (default pretty: true works the same).

Features

  • Detailed benchmarks
  • Plug (and Phoenix)
  • Use with other libraries
  • The package can be installed by adding jason to your list of dependencies
  • A blazing fast JSON parser and generator in pure Elixir
  • The parser and generator are at least twice as fast as other Elixir/Erlang libraries

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow Jason

Jason Web Site

Other Useful Business Software
Try Google Cloud Risk-Free With $300 in Credit Icon
Try Google Cloud Risk-Free With $300 in Credit

No hidden charges. No surprise bills. Cancel anytime.

Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Jason!

Additional Project Details

Programming Language

Elixir

Related Categories

Elixir JSON Software

Registered

2022-10-07