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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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