json5

Json5 in elixir

Latest version: 0.2.0 registry icon
Maintenance score
0
Safety score
0
Popularity score
70
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.2.0 0 0 0 0 0
0.1.0 0 0 0 0 0
0.0.2 0 0 0 0 0
0.0.1 0 0 0 0 0

Stability
Latest release:

0.2.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



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.