EscapeJsonString

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

FString EscapeJsonString
(
    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.

Returns

the given string, escaped to produce a valid Json string.

Parameters

Parameter

Description

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