AppendEscapeJsonString

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

Windows
MacOS
Linux

References

Module

Json

Header

/Engine/Source/Runtime/Json/Public/Serialization/JsonWriter.h

Include

#include "Serialization/JsonWriter.h"

Syntax

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

Remarks

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)

Returns

the AppendTo string for convenience.

Parameters

Parameter

Description

AppendTo

the string to append to.

StringVal

the string to escape

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss