UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TJsonStringWriter< PrintPolicy > Class Template Reference

#include <JsonWriter.h>

+ Inheritance diagram for TJsonStringWriter< PrintPolicy >:

Public Types

using CharType = typename PrintPolicy::CharType
 
using StringType = TString< CharType >
 

Public Member Functions

virtual ~TJsonStringWriter ()
 
virtual bool Close () override
 
- Public Member Functions inherited from TJsonWriter< CharType, PrintPolicy >
virtual ~TJsonWriter ()
 
int32 GetIndentLevel () const
 
bool CanWriteObjectStart () const
 
EJson GetCurrentElementType () const
 
void WriteObjectStart ()
 
template<typename IdentifierType >
void WriteObjectStart (IdentifierType &&Identifier)
 
void WriteObjectEnd ()
 
void WriteArrayStart ()
 
template<typename IdentifierType >
void WriteArrayStart (IdentifierType &&Identifier)
 
void WriteArrayEnd ()
 
void WriteValue (uint8 Value)
 
template<class FValue >
void WriteValue (FValue &&Value)
 
void WriteValue (FStringView Value)
 
void WriteValue (const FString &Value)
 
template<typename IdentifierType >
void WriteValue (IdentifierType &&Identifier, uint8 Value)
 
template<class FValue , typename IdentifierType >
void WriteValue (IdentifierType &&Identifier, FValue &&Value)
 
template<class ElementType , typename IdentifierType >
void WriteValue (IdentifierType &&Identifier, const TArray< ElementType > &Array)
 
template<typename IdentifierType , typename MapIdentifierType , class MapElementType >
void WriteValue (IdentifierType &&Identifier, const TMap< MapIdentifierType, MapElementType > &Map)
 
template<typename MapIdentifierType , class MapElementType >
void WriteValue (const TMap< MapIdentifierType, MapElementType > &Map)
 
void WriteValue (FStringView Identifier, const TCHAR *Value)
 
void WriteRawJSONValue (FStringView Identifier, FStringView Value)
 
void WriteRawJSONValue (FUtf8StringView Identifier, FUtf8StringView Value)
 
template<typename IdentifierType >
void WriteNull (IdentifierType &&Identifier)
 
void WriteValue (const TCHAR *Value)
 
void WriteRawJSONValue (FStringView Value)
 
void WriteRawJSONValue (FUtf8StringView Value)
 
void WriteNull ()
 
template<typename IdentifierType >
void WriteIdentifierPrefix (IdentifierType &&Identifier)
 

Static Public Member Functions

static TSharedRef< TJsonStringWriterCreate (StringType *const InStream, int32 InitialIndent=0)
 
- Static Public Member Functions inherited from TJsonWriter< CharType, PrintPolicy >
static TSharedRef< TJsonWriterCreate (FArchive *const Stream, int32 InitialIndentLevel=0)
 

Protected Member Functions

 TJsonStringWriter (StringType *const InOutString, int32 InitialIndent)
 
- Protected Member Functions inherited from TJsonWriter< CharType, PrintPolicy >
 TJsonWriter (FArchive *const InStream, int32 InitialIndentLevel)
 
bool CanWriteValueWithoutIdentifier () const
 
bool CanWriteObjectWithoutIdentifier () const
 
void WriteCommaIfNeeded ()
 
template<typename InCharType >
void WriteIdentifier (const InCharType *Identifier)
 
template<typename InCharType >
void WriteIdentifier (TStringView< InCharType > Identifier)
 
void WriteIdentifier (const FText &Identifier)
 
void WriteIdentifier (const FString &Identifier)
 
EJsonToken WriteValueOnly (bool Value)
 
EJsonToken WriteValueOnly (float Value)
 
EJsonToken WriteValueOnly (double Value)
 
EJsonToken WriteValueOnly (int32 Value)
 
EJsonToken WriteValueOnly (int64 Value)
 
EJsonToken WriteValueOnly (uint8 Value)
 
EJsonToken WriteValueOnly (uint32 Value)
 
EJsonToken WriteValueOnly (uint64 Value)
 
EJsonToken WriteValueOnly (TYPE_OF_NULLPTR)
 
EJsonToken WriteValueOnly (const TCHAR *Value)
 
EJsonToken WriteValueOnly (FStringView Value)
 
EJsonToken WriteValueOnly (FUtf8StringView Value)
 
template<typename ValueType >
EJsonToken WriteValueOnly (TSharedRef< ValueType > ValueRef)
 
template<typename ValueType >
EJsonToken WriteValueOnly (TSharedPtr< ValueType > ValuePtr)
 
template<typename... ValueTypes>
EJsonToken WriteValueOnly (const TVariant< ValueTypes... > &Variant)
 
template<typename MapIdentifierType , typename MapElementType >
EJsonToken WriteValueOnly (const TMap< MapIdentifierType, MapElementType > &Map)
 
template<typename ArrayElementType >
EJsonToken WriteValueOnly (const TArray< ArrayElementType > &Array)
 
virtual void WriteStringValue (FAnsiStringView String)
 
virtual void WriteStringValue (FStringView String)
 
virtual void WriteStringValue (const FString &String)
 
virtual void WriteStringValue (FUtf8StringView String)
 
virtual void WriteStringValue (const FUtf8String &String)
 
template<typename InCharType >
void WriteRawJSONValueImpl (FStringView Identifier, TStringView< InCharType > Value)
 
template<typename InCharType >
void WriteRawJSONValueImpl (TStringView< InCharType > Value)
 
template<typename InCharType >
void WriteEscapedString (TStringView< InCharType > InView)
 

Additional Inherited Members

- Protected Attributes inherited from TJsonWriter< CharType, PrintPolicy >
FArchive *const Stream
 
TArray< EJsonStack
 
EJsonToken PreviousTokenWritten
 
int32 IndentLevel
 

Member Typedef Documentation

◆ CharType

template<class PrintPolicy = TPrettyJsonPrintPolicy<TCHAR>>
using TJsonStringWriter< PrintPolicy >::CharType = typename PrintPolicy::CharType

◆ StringType

template<class PrintPolicy = TPrettyJsonPrintPolicy<TCHAR>>
using TJsonStringWriter< PrintPolicy >::StringType = TString<CharType>

Constructor & Destructor Documentation

◆ ~TJsonStringWriter()

template<class PrintPolicy = TPrettyJsonPrintPolicy<TCHAR>>
virtual TJsonStringWriter< PrintPolicy >::~TJsonStringWriter ( )
inlinevirtual

◆ TJsonStringWriter()

template<class PrintPolicy = TPrettyJsonPrintPolicy<TCHAR>>
TJsonStringWriter< PrintPolicy >::TJsonStringWriter ( StringType *const  InOutString,
int32  InitialIndent 
)
inlineprotected

Member Function Documentation

◆ Close()

template<class PrintPolicy = TPrettyJsonPrintPolicy<TCHAR>>
virtual bool TJsonStringWriter< PrintPolicy >::Close ( )
inlineoverridevirtual

◆ Create()

template<class PrintPolicy = TPrettyJsonPrintPolicy<TCHAR>>
static TSharedRef< TJsonStringWriter > TJsonStringWriter< PrintPolicy >::Create ( StringType *const  InStream,
int32  InitialIndent = 0 
)
inlinestatic

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