mirror of
https://github.com/status-im/nim-json-serialization.git
synced 2025-02-17 20:46:29 +00:00
Another readObjectFields convenience helper
This commit is contained in:
parent
f011bea54b
commit
1dccd4b2ef
@ -519,3 +519,8 @@ proc readValue*[T](r: var JsonReader, value: var T)
|
||||
else:
|
||||
const typeName = typetraits.name(T)
|
||||
{.error: "Failed to convert to JSON an unsupported type: " & typeName.}
|
||||
|
||||
iterator readObjectFields*(r: var JsonReader): string =
|
||||
for key in readObjectFields(r, string):
|
||||
yield key
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user