WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

thomas9911/json5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Json5

Json5 in elixir.

Usage

input = %{test: 1}
Json5.encode(input)
input = """
{
  test: 1
}
"""
Json5.decode(input)

For full examples and options go to the moduledocs: https://hexdocs.pm/json5

Installation

If available in Hex, the package can be installed by adding json5 to your list of dependencies in mix.exs:

def deps do
  [
    {:json5, "~> 0.2.0"}
  ]
end

Note

This library is now quite slow. So only use it when you really need json5 or for input that is only loaded once (for instance configuration).

From version 0.2.0 there different backends you can use for decoding. Check the docs for more info.

About

Json5 in elixir

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •