![]() |
Home | Libraries | People | FAQ | More |
Serialize object
to an output stream.
Defined in header <boost/json/object.hpp>
friend std::ostream& operator<<( std::ostream& os, object const& obj);
This function serializes an object
as JSON into the output stream.
Reference to os.
Constant or linear in the size of obj.
Strong guarantee. Calls to memory_resource::allocate
may throw.
|
Name |
Description |
|---|---|
|
|
The output stream to serialize to. |
|
|
The value to serialize. |
Convenience header <boost/json.hpp>