JSON parsing and serialization utilities.

Types

Name

Description

parse_error

Error thrown when deserializing json (i.e. converting a string into json).

parse_location

Source location of a parsed value (may be extended in the future to include offset, column, etc.).

parse_metadata

Parse metadata describing where a value's key and value appear in the source text.

parse_range

Source range of a parsed value (may be extended in the future to include an end location).

print_error

Error thrown when serializing json (i.e. converting json into a string).

serialization_opts

Options controlling how a dynamic is serialized to and parsed from JSON.

Type Aliases

Name

Description

metadata_map

Maps each parsed dynamic to its parse metadata.

Enums

Name

Description

FloatFormat

Specifies how to format floating‐point values in serialized JSON output.

Functions

Name

Description

buildExtraAsciiToEscapeBitmap

Create bitmap for serialization_opts.extra_ascii_to_escape_bitmap.

escapeString

Escape a string so that it is legal to print it in JSON text.

serialize

Serialize dynamic to json‐string, with options.

stripComments

Strip all C99‐like comments (i.e. // and / * ... * /)

Created with MrDocs