diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-06-14 12:03:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-14 12:03:41 +0200 |
commit | 80a1da951d6b6badd71eb7d540fb7c3658a46d00 (patch) | |
tree | 5b20d759299b55bf26e2d4a499f1c9f12faa6420 | |
parent | 89dd1e3592e5f869bd2845c587ddec9c749d4d7b (diff) | |
parent | 127556ad63a6486954bc8a020cffeb91490dee53 (diff) | |
download | Nim-80a1da951d6b6badd71eb7d540fb7c3658a46d00.tar.gz |
Merge pull request #8033 from FedericoCeratto/patch-9
Add hint on JSON serialization
-rw-r--r-- | lib/pure/marshal.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim index b88c9dd85..b90d2899c 100644 --- a/lib/pure/marshal.nim +++ b/lib/pure/marshal.nim @@ -270,6 +270,8 @@ 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) |