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"
14inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::document& x)
noexcept;
21inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::value& x)
noexcept;
27inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::object& x)
noexcept;
33inline simdjson_result<std::string_view>
to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::array& x)
noexcept;
34inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document> x);
35inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> x);
36inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> x);
37inline simdjson_result<std::string_view>
to_json_string(simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> x);
39#if SIMDJSON_STATIC_REFLECTION
45 requires(!std::same_as<T, SIMDJSON_IMPLEMENTATION::ondemand::document> &&
46 !std::same_as<T, SIMDJSON_IMPLEMENTATION::ondemand::value> &&
47 !std::same_as<T, SIMDJSON_IMPLEMENTATION::ondemand::object> &&
48 !std::same_as<T, SIMDJSON_IMPLEMENTATION::ondemand::array>)
61namespace simdjson {
namespace SIMDJSON_IMPLEMENTATION {
namespace ondemand {
72#if SIMDJSON_EXCEPTIONS
84#if SIMDJSON_EXCEPTIONS
96#if SIMDJSON_EXCEPTIONS
100#if SIMDJSON_EXCEPTIONS
112#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.
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.