Closed emizzle closed 4 years ago
This has been implemented through improvements in nim-stew
:
https://github.com/status-im/nim-stew/pull/40
Just pull the latest version of nim-stew, no changes are required in nim-serialization or nim-json-serialization.
When trying to de/serialize an object that inherits from another type, an error is thrown.
Setup
Serialize
Expected result:
signal.toJson
should serialize to"{\"signalType\":\"node.started\", \"event\":\"this happened\"}"
Deserialize
Expected result: the result of
Json.decode
should deserialize to