|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
Canonical JSON serialization – null stripping, key reordering per FDL spec, formatting. More...
Functions | |
| ojson | fdl::detail::strip_nulls (const ojson &val) |
| Strip null values recursively; empty arrays are preserved as []. | |
| ojson | fdl::detail::reorder_object (const ojson &obj, const std::string &type_hint) |
| Reorder an object's keys according to the specified type's canonical order. | |
| char * | fdl::detail::node_to_canonical_json (const ojson *node, const std::string &type_hint, int indent) |
| Serialize an ojson node to canonical JSON: strip_nulls + reorder + format. | |
Canonical JSON serialization – null stripping, key reordering per FDL spec, formatting.
Strip null values recursively; empty arrays are preserved as [].
| val | JSON value to process. |
val with all null members removed. Reorder an object's keys according to the specified type's canonical order.
| obj | JSON object to reorder. |
| type_hint | Object type: "root", "context", "canvas", "framing_decision", "framing_intent", "canvas_template", "version", "dimensions", "point", "round_strategy", "clip_id". |
| char * fdl::detail::node_to_canonical_json | ( | const ojson * | node, |
| const std::string & | type_hint, | ||
| int | indent | ||
| ) |
Serialize an ojson node to canonical JSON: strip_nulls + reorder + format.
| node | JSON node to serialize (may be nullptr). |
| type_hint | Type hint for key ordering. |
| indent | Spaces per indent level (0 for compact). |
< POSIX strdup.