1 #include "simdjson/dom/serialization.h"
2 #include "simdjson/error.h"
10 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::document& x) noexcept;
17 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::value& x) noexcept;
23 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::object& x) noexcept;
29 inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::array& x) noexcept;
30 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document> x);
31 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> x);
32 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> x);
33 inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> x);
43 namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace ondemand {
54 #if SIMDJSON_EXCEPTIONS
66 #if SIMDJSON_EXCEPTIONS
78 #if SIMDJSON_EXCEPTIONS
82 #if SIMDJSON_EXCEPTIONS
94 #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.
We want to support argument-dependent lookup (ADL).
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.