1#ifndef SIMDJSON_DOM_FRACTURED_JSON_H
2#define SIMDJSON_DOM_FRACTURED_JSON_H
4#include "simdjson/dom/base.h"
5#include "simdjson/dom/element.h"
163#if SIMDJSON_EXCEPTIONS
The top level simdjson namespace, containing everything the library provides.
table_comma_placement
Specifies where commas should be in table-formatted elements.
@ before_padding_except_numbers
Commas come right after the value, except for columns of numbers.
@ after_padding
Commas come after the column padding, so they line up in their own column.
@ before_padding
Commas come right after the value.
std::string fractured_json_string(std::string_view json_str)
Format a JSON string using FracturedJson formatting.
std::string fractured_json(T x)
Format JSON using FracturedJson formatting with default options.
number_list_alignment
Options for how lists or columns of numbers should be aligned.
@ right
Right-aligns numbers.
@ left
Left-aligns numbers.
Configuration options for FracturedJson formatting.
number_list_alignment number_alignment
Controls alignment of numbers in table columns or compact multiline arrays (default: left).
size_t max_compact_array_complexity
Maximum complexity for compact array formatting (default: 2).
bool simple_bracket_padding
Add space inside brackets for containers that hold only scalar values (default: false).
table_comma_placement comma_placement
Placement of commas relative to column padding in table-formatted rows and compact multiline arrays (...
bool comma_padding
Add space after commas in inline content (default: true).
int always_expand_depth
Forces elements close to the root to always fully expand, regardless of other settings.
bool enable_table_format
Enable tabular formatting for arrays of similar objects or arrays (default: true).
size_t indent_spaces
Number of spaces per indentation level (default: 4).
bool nested_bracket_padding
Add space inside brackets for containers that hold at least one nested array/object (default: true).
bool colon_padding
Add space after colons (default: true).
size_t min_compact_array_row_items
Minimum number of items per line for an array to be formatted as a compact multiline array (default: ...
size_t max_inline_complexity
Maximum nesting depth for inline rendering (default: 2).
size_t max_total_line_length
Maximum total characters per line (default: 120).
size_t max_table_row_complexity
Maximum complexity of each row of a table (default: 2).
bool enable_compact_multiline
Enable compact multiline arrays (default: true).
The result of a simdjson operation that could fail.