Add hint on JSON serialization

This commit is contained in:
Federico Ceratto
2018-06-13 23:11:29 +01:00
committed by GitHub
parent 89dd1e3592
commit d1e03c20d2

View File

@@ -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)