diff options
author | Federico Ceratto <federico.ceratto@gmail.com> | 2018-06-13 23:11:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 23:11:29 +0100 |
commit | d1e03c20d22916a7f2165e12e1fafa94eaf8c67e (patch) | |
tree | 69482aec24a2e118d393fdbc1cea80add57fa928 /lib/pure | |
parent | 89dd1e3592e5f869bd2845c587ddec9c749d4d7b (diff) | |
download | Nim-d1e03c20d22916a7f2165e12e1fafa94eaf8c67e.tar.gz |
Add hint on JSON serialization
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/marshal.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim index b88c9dd85..9b6482c77 100644 --- a/lib/pure/marshal.nim +++ b/lib/pure/marshal.nim @@ -270,6 +270,7 @@ proc store*[T](s: Stream, data: T) = proc `$$`*[T](x: T): string = ## returns a string representation of `x`. + ## Note: to serialize `x` to JSON use $(%x) from the ``json`` module var stored = initIntSet() var d: T shallowCopy(d, x) |