This commit is contained in:
Eric 2024-02-13 17:35:44 +11:00
parent 978c9c32a9
commit 553661e488
No known key found for this signature in database

View File

@ -234,8 +234,6 @@ proc fromJson*(_: type JsonNode, json: string): ?!JsonNode =
proc fromJson*[T: ref object or object](_: type T, bytes: openArray[byte]): ?!T =
let json = string.fromBytes(bytes)
static:
echo "typeof json after parse: ", typeof json
T.fromJson(json)
proc fromJson*[T: ref object or object](_: type T, json: string): ?!T =