JSONInput
struct JSONInputInput structure for JSON data.
Implements Movable
- Fields
data: List[UInt8]
__init__
def __init__(out self, data: List[UInt8]) json_mlake ยท API
json.typesJSONInputstruct JSONInputInput structure for JSON data.
Implements Movable
data: List[UInt8]__init__def __init__(out self, data: List[UInt8]) JSONResultstruct JSONResultResult structure containing parsed JSON information.
Implements Movable
structural: List[Int32]pair_pos: List[Int32]depth: Intfile_size: Int__init__def __init__(out self) total_result_sizedef total_result_size(self) -> Int is_structural_chardef is_structural_char(c: UInt8) -> Bool Check if a character is a JSON structural character.
is_open_bracketdef is_open_bracket(c: UInt8) -> Bool Check if character is an opening bracket.
is_close_bracketdef is_close_bracket(c: UInt8) -> Bool Check if character is a closing bracket.
comptime CHAR_OPEN_BRACE = UInt8(123)comptime CHAR_CLOSE_BRACE = UInt8(125)comptime CHAR_OPEN_BRACKET = UInt8(91)comptime CHAR_CLOSE_BRACKET = UInt8(93)comptime CHAR_COLON = UInt8(58)comptime CHAR_COMMA = UInt8(44)comptime CHAR_QUOTE = UInt8(34)comptime CHAR_BACKSLASH = UInt8(92)comptime CHAR_NEWLINE = UInt8(10)