Skip to content

Commit ba7c47b

Browse files
committed
Add import times and json so that people know which librarires they need in the samples.
1 parent 33c3daa commit ba7c47b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ Json can't store dates, so they are usually stored as strings. You can use
174174
`parseHook*()` to override default parsing and parse `DateTime` as a `string`:
175175

176176
```nim
177+
import jsony, times
178+
177179
proc parseHook*(s: string, i: var int, v: var DateTime) =
178180
var str: string
179181
parseHook(s, i, str)
@@ -270,6 +272,8 @@ Some times your json objects could contain arbitrary json structures,
270272
maybe event user defined, that could only be walked as json nodes. This library allows you to parse json-in-json were you parse some of the structure as real nim objects but leave some parts of it as Json Nodes to be walked later with code:
271273

272274
```nim
275+
import jsony, json
276+
273277
type Entry = object
274278
name: string
275279
data: JsonNode

0 commit comments

Comments
 (0)