Restore the reader.skipSingleJsValue API (#67)

This commit is contained in:
zah 2023-12-19 14:34:50 +02:00 committed by GitHub
parent f42567c00c
commit 1693db7a57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -327,6 +327,9 @@ proc skipSingleJsValue*(lexer: var JsonLexer) {.raises: [IOError, JsonReaderErro
tkTrue, tkFalse, tkNull:
lexer.next()
template skipSingleJsValue*(r: var JsonReader) =
skipSingleJsValue(r.lexer)
proc captureSingleJsValue(r: var JsonReader, output: var string) {.raises: [IOError, SerializationError].} =
r.lexer.renderTok output
case r.lexer.tok