JSON-Binding for deser
nimble install deser_json
First, install deser via nimble install deser
deser_json provides three procedures:
toJson
for serializationtoPrettyJson
for pretty serializationfromJson
for 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.
Licensed under MIT license.
deser_json uses third-party libraries or other resources that may be distributed under licenses different than the deser_json.
- serde_json, for all the ideas I stole
- jsony, for json parser