JSON

JR_ARR

JR_ARR Description Read a JSON array using a custom value reader expression. The macro parses a JSON array and calls the user-provided code block for each element. If the value can’t be parsed or reader fails to advance the iterator, the value is skipped.

Read More

JR_ARR_KV

JR_ARR_KV Description Conditionally parse a JSON array if key matches expected name.

Read More

JR_BOOL

JR_BOOL Description Read a JSON boolean value from stream and assign to target.

Read More

JR_BOOL_KV

JR_BOOL_KV Description Read a boolean key-value pair if key matches.

Read More

JR_FLT

JR_FLT Description Read a JSON float value from stream and assign to target.

Read More

JR_FLT_KV

JR_FLT_KV Description Read a float key-value pair if key matches.

Read More

JR_INT

JR_INT Description Read a JSON integer value from stream and assign to target.

Read More

JR_INT_KV

JR_INT_KV Description Read an integer key-value pair if key matches.

Read More

JR_OBJ

JR_OBJ Description Read a JSON object using a custom field reader expression. The macro parses the object and invokes the provided code block for each key-value pair. If the key is not recognized or parsing fails, the value is skipped.

Read More

JR_OBJ_KV

JR_OBJ_KV Description Conditionally parse a JSON object if key matches expected name.

Read More

JR_STR

JR_STR Description Read a JSON string value from stream and assign to target. The resulting string is dynamically allocated in Str format.

Read More

JR_STR_KV

JR_STR_KV Description Read a string key-value pair if key matches.

Read More

JReadBool

JReadBool Description Read a boolean value (“true” or “false”) from input string.

Read More

JReadFloat

JReadFloat Description Read a floating-point number from input string.

Read More

JReadInteger

JReadInteger Description Strictly read an integer from input string.

Read More

JReadNumber

JReadNumber Description Read a JSON number (int or float) from input string.

Read More

JReadString

JReadString Description Read a quoted string, handling escape sequences.

Read More

JSkipValue

JSkipValue Description Skip the current JSON value at reading position.

Read More

JSkipWhitespace

JSkipWhitespace Description Skip whitespace from current reading position.

Read More

JW_ARR

JW_ARR Description Write a JSON array from a vector. Each item is rendered using the provided writer. Handles inserting commas between elements.

Read More

JW_ARR_KV

JW_ARR_KV Description Write a key and an array value into a JSON object. Intended for use within a JW_OBJ. Adds commas automatically.

Read More

JW_BOOL

JW_BOOL Description Append a boolean value to the JSON as unquoted true/false.

Read More

JW_BOOL_KV

JW_BOOL_KV Description Write a key and boolean value into a JSON object.

Read More

JW_FLT

JW_FLT Description Append a floating-point value to a JSON string.

Read More

JW_FLT_KV

JW_FLT_KV Description Write a key and float value to a JSON object.

Read More

JW_INT

JW_INT Description Append an integer value to a JSON string.

Read More

JW_INT_KV

JW_INT_KV Description Write a key and integer value to a JSON object.

Read More

JW_OBJ

JW_OBJ Description Begin a JSON object and write key-value entries using JW_*_KV macros. This macro must be used as a wrapper for other JW_*_KV macros to generate a JSON object. Tracks whether commas are needed between entries using an internal flag.

Read More

JW_OBJ_KV

JW_OBJ_KV Description Write a key and nested object inside an existing JSON object. Should be called inside JW_OBJ. Adds commas appropriately based on insertion order.

Read More

JW_STR

JW_STR Description Append a string value (quoted) to the JSON.

Read More

JW_STR_KV

JW_STR_KV Description Write a key and string value into a JSON object.

Read More