userver: userver/formats/json/value_builder.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
value_builder.hpp File Reference

Detailed Description

Builder for JSON.

Definition in file value_builder.hpp.

Go to the source code of this file.

#include <chrono>
#include <string_view>
#include <vector>
#include <userver/formats/common/meta.hpp>
#include <userver/formats/common/transfer_tag.hpp>
#include <userver/formats/json/impl/mutable_value_wrapper.hpp>
#include <userver/formats/json/value.hpp>
#include <userver/utils/strong_typedef.hpp>
+ Include dependency graph for value_builder.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  formats::json::ValueBuilder
 Builder for JSON. More...
 
struct  formats::json::ValueBuilder::IterTraits
 

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::json
 JSON support.
 

Functions

template<typename T >
std::enable_if_t< std::is_integral< T >::value &&sizeof(T)<=sizeof(int64_t), Valueformats::json::Serialize (T value, formats::serialize::To< Value >)
 
json::Value formats::json::Serialize (std::chrono::system_clock::time_point tp, formats::serialize::To< Value >)
 
template<typename T >
std::enable_if_t< meta::kIsUniqueMap< T > &&utils::IsStrongTypedefLoggable(T::key_type::kOps), Valueformats::json::Serialize (const T &value, formats::serialize::To< Value >)
 Optimized maps of StrongTypedefs serialization for JSON.
 
template<typename T >
std::enable_if_t< meta::kIsUniqueMap< T > &&std::is_convertible_v< typename T::key_type, std::string >, Valueformats::json::Serialize (const T &value, formats::serialize::To< Value >)
 Optimized maps serialization for JSON.