1 #ifndef SIMDJSON_GENERIC_ONDEMAND_SERIALIZATION_H
3 #ifndef SIMDJSON_CONDITIONAL_INCLUDE
4 #define SIMDJSON_GENERIC_ONDEMAND_SERIALIZATION_H
5 #include "simdjson/generic/ondemand/base.h"
14 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::document& x) noexcept;
21 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::value& x) noexcept;
27 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::object& x) noexcept;
33 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::array& x) noexcept;
34 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document> x);
35 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> x);
36 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> x);
37 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> x);
47 namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace ondemand {
58 #if SIMDJSON_EXCEPTIONS
70 #if SIMDJSON_EXCEPTIONS
82 #if SIMDJSON_EXCEPTIONS
86 #if SIMDJSON_EXCEPTIONS
98 #if SIMDJSON_EXCEPTIONS
A forward-only JSON array.
A document_reference is a thin wrapper around a document reference instance.
A forward-only JSON object field iterator.
An ephemeral JSON value returned during iteration.
std::ostream & operator<<(std::ostream &out, json_type type) noexcept
Write the JSON type to the output stream.
The top level simdjson namespace, containing everything the library provides.
simdjson_result< std::string_view > to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::document &x) noexcept
Create a string-view instance out of a document instance.
The result of a simdjson operation that could fail.