Open kelbon opened 1 month ago
Direct serialization will be released with Boost 1.87.
what interface it will provide?
Basically the same as with value
serialization.
https://www.boost.org/doc/libs/develop/libs/json/doc/html/json/ref/boost__json__serialize/overload5.html
So it will work with boost pfr/ boost describe struct or what? I need more low lower level interface with serializing strings/ints/keys etc
Such interface witih returning string will not match with output iterators, (for not copying string after it created), also i think such overload serialize(auto& value, options) may break many overloads in current code
I can assure you that we have tests for this, no overload ambiguity happens.
If you want something more granular, setializer
also will support direct operation.
https://www.boost.org/doc/libs/develop/libs/json/doc/html/json/ref/boost__json__serializer/reset/overload5.html
Do library provide interface to serialize structs into json string without creating a json value? As i see, serialization requires json value