mirror of
https://github.com/status-im/nim-json-serialization.git
synced 2025-02-16 12:07:35 +00:00
allow overriding JsonWriter.state
This commit is contained in:
parent
ab1a061756
commit
558b89065c
@ -17,7 +17,7 @@ export
|
||||
outputs, format, types, JsonString, DefaultFlavor
|
||||
|
||||
type
|
||||
JsonWriterState = enum
|
||||
JsonWriterState* = enum
|
||||
RecordExpected
|
||||
RecordStarted
|
||||
AfterField
|
||||
@ -27,7 +27,7 @@ type
|
||||
hasTypeAnnotations: bool
|
||||
hasPrettyOutput*: bool # read-only
|
||||
nestingLevel*: int # read-only
|
||||
state: JsonWriterState
|
||||
state*: JsonWriterState
|
||||
|
||||
Json.setWriter JsonWriter,
|
||||
PreferredOutput = string
|
||||
|
Loading…
x
Reference in New Issue
Block a user