Hello,
I have been working on an app which calls a REST api which returns json objects.
I have created the types and when I attempt to convert I get this error.
lib/system.nim(2833, 7) Error: unhandled exception: false Unable to process
nnkSym DateTime
It is probably a simple newbie error. But I am failing to see why it fails or
how to fix.
Any help greatly appreciated.
Here is from what I see the pertinent code.
type
DateTime* = string
Price* = object
time*: DateTime
...
proc test_prices(data: string): seq[Price] =
let jsonNode = parseJson(data)
echo($jsonNode)
result = to(jsonNode, Price)
Run
Thanks.