mirror of
https://github.com/logos-storage/nim-serde.git
synced 2026-01-04 06:33:12 +00:00
parent
cf59b42ed5
commit
c81b751602
@ -258,9 +258,6 @@ proc fromJson*[T: ref object or object](_: type T, bytes: openArray[byte]): ?!T
|
|||||||
T.fromJson(json)
|
T.fromJson(json)
|
||||||
|
|
||||||
proc fromJson*[T: ref object or object](_: type T, json: string): ?!T =
|
proc fromJson*[T: ref object or object](_: type T, json: string): ?!T =
|
||||||
echo "here1, T: ", T
|
|
||||||
when T is Option:
|
|
||||||
echo " we have an option!"
|
|
||||||
let jsn = ?JsonNode.parse(json) # full qualification required in-module only
|
let jsn = ?JsonNode.parse(json) # full qualification required in-module only
|
||||||
T.fromJson(jsn)
|
T.fromJson(jsn)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user