Writer

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