Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
timotheecour
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
timotheecour
5y ago
yes, invalid JSON would raise an exception.
2.
▲
by
timotheecour
5y ago
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