https://github.com/marcelog/jsonex
An elixir module to wrap jsonerl
https://github.com/marcelog/jsonex
Last synced: 8 months ago
JSON representation
An elixir module to wrap jsonerl
- Host: GitHub
- URL: https://github.com/marcelog/jsonex
- Owner: marcelog
- License: apache-2.0
- Created: 2012-10-27T20:52:30.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-03-31T10:09:57.000Z (about 12 years ago)
- Last Synced: 2023-03-11T13:53:25.058Z (over 3 years ago)
- Language: Elixir
- Homepage:
- Size: 210 KB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jsonex
An [elixir](http://elixir-lang.org/) module to wrap [jsx](https://github.com/talentdeficit/jsx).
See [expm homepage](http://expm.co/jsonex) for jsonex.
# Use example
## Encoding
$ mix run 'IO.puts Jsonex.encode([a: 1, b: 2])'
{"a":1,"b":2}
## Decoding
mix run 'IO.inspect Jsonex.decode("{\"a\": 1, \"b\": 2}")'
[{"a",1},{"b",2}]
# License
This software is under the Apache 2 License. See the **LICENSE** file for more details.