struct

Rayo::JSON::Reader

Inherits Struct < Value < Object

Views borrow the input. String bytes retain JSON escapes until unescape is called.

Constructors

new(raw : Bytes)
Source

Class methods

parse?(raw : Bytes) : Reader | Nil
Source
valid?(raw : Bytes) : Bool
Source

Instance methods

[](name : String) : Reader
Source
array
Source
array?
Source
bool
Source
f64?
Source
i64?
Source
null?
Source
object
Source
object?
Source
string(scratch : Bytes) : Bytes
Source
string
Source
string?
Source
string_equals?(other : String) : Bool
Source