module

Rayo::JSON

Constants

KIND_NUMBER = 2
KIND_OTHER = 3
KIND_STRING = 1
MAX_DEPTH = 64

Class methods

hex4(p : Pointer(UInt8)) : Int32
Source
hexval(c : UInt8) : Int32
Source
unescape(p : Pointer(UInt8), n : Int32, dst : Pointer(UInt8)) : Int32

Unescapes an already validated JSON string body into dst (dst needs n bytes). Returns length.

Source
valid_utf8?(bytes : Bytes) : Bool

Reject overlong encodings, surrogate codepoints and values above U+10FFFF.

Source

Nested types