3#include <userver/formats/common/meta.hpp>
4#include <userver/formats/json/value.hpp>
5#include <userver/utils/box.hpp>
13 const utils::Box<formats::common::ParseType<formats::json::Value, T>>& value;
16template <
typename Value,
typename T>
17utils::Box<formats::common::ParseType<Value, T>> Parse(
18 const Value& value, formats::parse::To<Ref<T>>) {
19 auto result = value.
template As<T>();
23template <
typename Value,
typename T>
25 return typename Value::Builder{T{*ps.value}}.ExtractValue();