News for hackers. Stuff that matters.
Re:Nim 1.6 by timotheecour on Tuesday October 19, 2021 @04:55PM (#28923643)
Checkout the newer std/jsonutils: https://nim-lang.github.io/Nim/jsonutils.html

let a = (1.5'f32, (b: "b2", a: "a2"), 'x', @[Foo(t: true, z1: -3), nil])

let j = a.toJson

assert j.jsonTo(typeof(a)).toJson == j

There are no comments on this comment yet.