Navigation
API > API/Runtime > API/Runtime/Json
Description
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)
| Name | AppendEscapeJsonString |
| Type | function |
| Header File | /Engine/Source/Runtime/Json/Public/Serialization/JsonWriter.h |
| Include Path | #include "Serialization/JsonWriter.h" |
template<typename StringType>
StringType & AppendEscapeJsonString
(
StringType & AppendTo,
const FString & StringVal
)
the AppendTo string for convenience.
Parameters
| Name | Remarks |
|---|---|
| AppendTo | the string to append to. |
| StringVal | the string to escape |