simdjson  3.1.5
Ridiculously Fast JSON
serialization.h
1 #include "simdjson/dom/serialization.h"
2 #include "simdjson/error.h"
3 
4 namespace simdjson {
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);
34 } // namespace simdjson
35 
43 namespace simdjson { namespace SIMDJSON_IMPLEMENTATION { namespace ondemand {
44 
53 inline std::ostream& operator<<(std::ostream& out, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value x);
54 #if SIMDJSON_EXCEPTIONS
56 #endif
65 inline std::ostream& operator<<(std::ostream& out, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array value);
66 #if SIMDJSON_EXCEPTIONS
68 #endif
77 inline std::ostream& operator<<(std::ostream& out, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document& value);
78 #if SIMDJSON_EXCEPTIONS
80 #endif
81 inline std::ostream& operator<<(std::ostream& out, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference& value);
82 #if SIMDJSON_EXCEPTIONS
84 #endif
93 inline std::ostream& operator<<(std::ostream& out, simdjson::SIMDJSON_IMPLEMENTATION::ondemand::object value);
94 #if SIMDJSON_EXCEPTIONS
96 #endif
97 }}} // namespace simdjson::SIMDJSON_IMPLEMENTATION::ondemand
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:600
A forward-only JSON object field iterator.
Definition: object.h:10
An ephemeral JSON value returned during iteration.
Definition: value.h:17
std::ostream & operator<<(std::ostream &out, json_type type) noexcept
Write the JSON type to the output stream.
Definition: json_type-inl.h:5
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.
Definition: error.h:205