Skip to content
 
 

Latest commit

 

History

240 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elixir JSON

Build Status

This library provides a natively implemented JSON encoder and decoder for Elixir.

All contributions are welcome.

Installing

Simply add {:json, "~> 0.3.0"} to your project's mix.exs file, in the dependencies list and run mix deps.get json.

Example for a project that already uses Dynamo:

defp deps do
    [ { :cowboy, "~> 1.0.0" },
      { :dynamo, github: "elixir-lang/dynamo" },
      { :json,   "~> 0.3.0"} ]
end

Usage

  JSON.encode([result: "this will be a elixir result"])
  {:ok, "{\"result\":\"this will be a elixir result\"}"}
  JSON.decode("{\"result\":\"this will be a elixir result\"}")
  {:ok, [result: "this will be a elixir result"]}

License

The Elixir JSON library is available under the BSD 3-Clause aka "BSD New" license

About

Native JSON library for Elixir

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages