Restore the reader.skipSingleJsValue API (#67)
This commit is contained in:
parent
f42567c00c
commit
1693db7a57
|
@ -327,6 +327,9 @@ proc skipSingleJsValue*(lexer: var JsonLexer) {.raises: [IOError, JsonReaderErro
|
||||||
tkTrue, tkFalse, tkNull:
|
tkTrue, tkFalse, tkNull:
|
||||||
lexer.next()
|
lexer.next()
|
||||||
|
|
||||||
|
template skipSingleJsValue*(r: var JsonReader) =
|
||||||
|
skipSingleJsValue(r.lexer)
|
||||||
|
|
||||||
proc captureSingleJsValue(r: var JsonReader, output: var string) {.raises: [IOError, SerializationError].} =
|
proc captureSingleJsValue(r: var JsonReader, output: var string) {.raises: [IOError, SerializationError].} =
|
||||||
r.lexer.renderTok output
|
r.lexer.renderTok output
|
||||||
case r.lexer.tok
|
case r.lexer.tok
|
||||||
|
|
Loading…
Reference in New Issue