class

JSON::Lexer

Inherits Reference / Object

Constructors

new(string : String) : self
Source
new(io : IO) : self
Source

Instance methods

next_token
Source
next_token_expect_object_key

Requests the next token where the parser expects a json object key. In this case the lexer tries to reuse the String instances by using a StringPool.

Source
skip
Source
skip=(skip : Bool)
Source
token
Source