userver: formats::json::RawString Class Reference
Loading...
Searching...
No Matches
formats::json::RawString Class Reference

#include <userver/formats/json/raw_string.hpp>

Detailed Description

JSON fragment stored as text and written to output without re-encoding.

Definition at line 16 of file raw_string.hpp.

Public Member Functions

 RawString (const Value &value)
 Constructs from provided json object.
 RawString (std::string json) noexcept
 Constructs from provided json string. It is the user's responsibility to ensure that the input json string is valid.
 RawString () noexcept=default
 Constructs empty json object ({}).
 RawString (RawString &&) noexcept=default
 RawString (const RawString &)=default
RawStringoperator= (RawString &&) noexcept=default
RawStringoperator= (const RawString &)=default
std::string_view GetView () const noexcept
 Returns view to json.

◆ operator==

bool operator== ( const RawString & lhs,
const RawString & rhs )
friend

Definition at line 37 of file raw_string.hpp.


The documentation for this class was generated from the following file: