UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
JsonWriter.h File Reference

Go to the source code of this file.

Classes

class  TJsonWriter< CharType, PrintPolicy >
 
class  TJsonStringWriter< PrintPolicy >
 
class  TJsonWriterFactory< CharType, PrintPolicy >
 

Functions

template<typename DstChar , typename SrcChar >
bool HasDestinationJsonStringCharRepresentation (SrcChar Char)
 
template<typename StringType >
StringType & AppendEscapeJsonString (StringType &AppendTo, const FString &StringVal)
 
FString EscapeJsonString (const FString &StringVal)
 

Function Documentation

◆ AppendEscapeJsonString()

template<typename StringType >
StringType & AppendEscapeJsonString ( StringType &  AppendTo,
const FString &  StringVal 
)
inline

Takes an input string and escapes it so it can be written as a valid Json string. Also adds the quotes. Appends to a given string-like object to avoid reallocations. String-like object must support operator+=(const TCHAR*) and operation+=(TCHAR)

Parameters
AppendTothe string to append to.
StringValthe string to escape
Returns
the AppendTo string for convenience.

◆ EscapeJsonString()

FString EscapeJsonString ( const FString &  StringVal)
inline

Takes an input string and escapes it so it can be written as a valid Json string. Also adds the quotes.

Parameters
StringValthe string to escape
Returns
the given string, escaped to produce a valid Json string.

◆ HasDestinationJsonStringCharRepresentation()

bool HasDestinationJsonStringCharRepresentation ( SrcChar  Char)

Takes an input source char representing and returns if it is possible to represent in DstChar expected encoding

Parameters
Charsource char
Returns
false if character is a control char or if it is out of range of representation in case of converting to ANSICHAR. true otherwise