mirror of
https://github.com/gabbhack/deser_json
synced 2026-01-15 03:51:32 +00:00
No description
| .github/workflows | ||
| src | ||
| tests | ||
| .gitignore | ||
| deser_json.nimble | ||
| LICENSE | ||
| nim.cfg | ||
| README.md | ||
| THIRD-PARTY-NOTICES.TXT | ||
deser_json 
JSON-Binding for deser
nimble install deser_json
Usage
First, install deser via nimble install deser
deser_json provides three procedures:
toJsonfor serializationtoPrettyJsonfor pretty serializationfromJsonfor deserialization
import
deser,
deser_json
var some = [1, 2, 3]
echo some.toJson()
some = fromJson(typeof(some), "[1, 2, 3]")
See the deser documentation for a complete example.
License
Licensed under MIT license.
deser_json uses third-party libraries or other resources that may be distributed under licenses different than the deser_json.
Acknowledgements
- serde_json, for all the ideas I stole
- jsony, for json parser