Skip to content
/ rjs Public

safe & fast JSON library for Erlang, powered by Rust

License

Notifications You must be signed in to change notification settings

yjh0502/rjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 25, 2023
517451f · Jun 25, 2023

History

40 Commits
Jun 25, 2023
Dec 6, 2019
Jan 29, 2020
Jan 15, 2022
Feb 1, 2020
Dec 7, 2019
Dec 6, 2019
Sep 26, 2018
Sep 26, 2018

Repository files navigation

rjs

install

On rebar.config, add

{deps, [
    {rjs, {git, "https://github.com/yjh0502/rjs", {branch, "master"}}}
]}.

usage

decode/1,2

decode(JSON) -> Result
decode(JSON, Opts) -> Result

  JSON = binary() | iolist()
  Result = {ok, term()}
  Opts = [binary | atom | existing_atom | attempt_atom]

See jsx:decode/1,2

encode/1

encode(Term) -> Result

  Term = term()
  Result = {ok, binary()}

benchmark

encoding performance, normalized

bench encode

decoding performance, normalized

bench decode

About

safe & fast JSON library for Erlang, powered by Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published