No description
Find a file
2023-04-11 16:02:16 +00:00
.github/workflows Delete windows, add nim version matrix 2022-08-18 09:57:41 -07:00
src Fix deserializeAny nums, fix deserialize option 2023-02-10 21:03:58 +05:00
tests Rename fromString to fromJson 2022-08-24 08:31:23 -07:00
.gitignore Update .gitignore 2021-11-01 17:58:12 +05:00
deser_json.nimble Bump deser version 2023-04-11 16:02:16 +00:00
LICENSE Update license shit 2022-08-18 09:57:16 -07:00
nim.cfg Use openArray[char] instead of string 2023-02-10 13:57:10 +05:00
README.md Rename fromString to fromJson 2022-08-24 08:31:23 -07:00
THIRD-PARTY-NOTICES.TXT Update license shit 2022-08-18 09:57:16 -07:00

deser_json nim-version-img

JSON-Binding for deser

nimble install deser_json

Deser documentation


Usage

First, install deser via nimble install deser

deser_json provides three procedures:

  1. toJson for serialization
  2. toPrettyJson for pretty serialization
  3. fromJson 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.

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.

THIRD-PARTY-NOTICES.TXT

Acknowledgements