10#include <userver/formats/json_fwd.hpp>
12USERVER_NAMESPACE_BEGIN
19 using Data = std::variant<std::string,
bool, std::int64_t,
double>;
22 explicit AnyValue(std::string string_value);
23 explicit AnyValue(
const char* string_value);
24 explicit AnyValue(
bool bool_value);
25 explicit AnyValue(
int int_value);
26 explicit AnyValue(
long int_value);
27 explicit AnyValue(
long long int_value);
28 explicit AnyValue(
unsigned int int_value);
29 explicit AnyValue(
unsigned long int_value);
30 explicit AnyValue(
unsigned long long int_value);
31 explicit AnyValue(
float double_value);
32 explicit AnyValue(
double double_value);
35 const Data& GetData()
const;
42AnyValue Parse(
const formats::json::Value& value, formats::parse::To<
AnyValue>);
44void WriteToStream(
const AnyValue& any_value, formats::json::StringBuilder& sw);