10#ifndef FDL_CANONICAL_INTERNAL_H
11#define FDL_CANONICAL_INTERNAL_H
13#include <jsoncons/json.hpp>
16namespace fdl::detail {
18using ojson = jsoncons::ojson;
jsoncons::ojson ojson
Alias for ordered JSON type.
Definition fdl_accessors_api.cpp:23
ojson strip_nulls(const ojson &val)
Strip null values recursively; empty arrays are preserved as [].
Definition fdl_canonical.cpp:132
char * 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.
Definition fdl_canonical.cpp:237
ojson reorder_object(const ojson &obj, const std::string &type_hint)
Reorder an object's keys according to the specified type's canonical order.
Definition fdl_canonical.cpp:152