Skip to content

Commit

Permalink
Restore the reader.skipSingleJsValue API
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed Dec 19, 2023
1 parent f42567c commit 1dbfbd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions json_serialization/reader.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1dbfbd7

Please sign in to comment.