jsony
jsony copied to clipboard
releasing deserialization with default values
hello! thanks for this great library!
i was wondering if you could possibly release this functionality
thank you in advance
In other words, the request is to create a new release. @treeform if you're busy we could help maintain the library.
Second the need for a new release. Just went to report an issue and realised it's fixed upstream but there hasn't been a release in two years
The fix is also incomplete:
type
Frog = object
leftLeg: Leg
Leg = object
length: int = 2
let s = """{"leftLeg":{}}"""
let f = s.fromJson(Frog)
doAssert f.leftLeg.length == 2 # fail; it's 0