Repository navigation
json4cpp / xson v3.1.0
Additive, backward-compatible. object::try_get<T>(name) returns the typed field, or nullopt when the name is missing. object::value_or<T>(name, default_value) returns that default when the name is missing. A present field of the wrong type throws, the same as operator[]; neither call coerces a wrong type into the default. T is one of string_type, number_type, boolean_type, integer_type, int32_type, or timestamp_type.
No breaking changes and no public bugfixes since v3.0.0.
Public surface: import xson;
Minimum toolchain: Clang 21+ with libc++ modules (std.cppm).
Nested tester: b2ab677 (v3.0.0).