Skip to content

Commit 0c9bd41

Browse files
committed
0.0.5
1 parent e520b6f commit 0c9bd41

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# JSONy - A loose, direct to object json parser and serializer with hooks.
22

3+
Pure nim module with no other dependencies.
4+
35
`nimble install jsony`
46

57
```nim
68
@[1, 2, 3].toJson() -> "[1,2,3]"
7-
"[1, 2, 3]".fromJson(seq[int]) -> @[1, 2, 3]
9+
"[1,2,3]".fromJson(seq[int]) -> @[1, 2, 3]
810
```
911

12+
## Rational
13+
1014
Real world json is *never what you want*. It might have extra fields that you don't care about. It might have missing fields requiring default values. It might change or grow new fields at any moment. Json might use `camelCase` or `snake_case`. It might use inconsistent naming.
1115

1216
With this library you can use json your way, from the mess you get to the objects you want.

jsony.nimble

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "0.0.4"
1+
version = "0.0.5"
22
author = "Andre von Houck"
33
description = "A loose direct to object json parser with hooks."
44
license = "MIT"

0 commit comments

Comments
 (0)