![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Namespaces | |
| namespace | Private |
Classes | |
| class | FJsonPointer |
| struct | FParseError |
Typedefs | |
| using | FDocumentEncoding = rapidjson::UTF16BE< TCHAR > |
| using | FEncoding = rapidjson::UTF16< TCHAR > |
| using | FAllocator = Private::FAllocatorImpl |
| using | FDocument = rapidjson::GenericDocument< FEncoding, FAllocator > |
| using | FStringRef = FDocument::StringRefType |
| using | FValue = FDocument::ValueType |
| using | FMember = FValue::Member |
| using | FConstObject = FValue::ConstObject |
| using | FConstArray = FValue::ConstArray |
| using | FObject = FValue::Object |
| using | FArray = FValue::Array |
| using | FStringBuffer = rapidjson::GenericStringBuffer< FEncoding, FAllocator > |
| using | FStringWriter = rapidjson::Writer< FStringBuffer, FEncoding, FEncoding, FAllocator > |
| using | FPrettyStringWriter = rapidjson::PrettyWriter< FStringBuffer, FEncoding, FEncoding, FAllocator > |
Variables | |
| const constexpr uint32 | DefaultParseFlags = rapidjson::ParseFlag::kParseTrailingCommasFlag |
| constexpr size_t | InternalError_NotNullTerminated = 1 |
Helper functions for reading/writing RapidJSON with unreal types
| using UE::Json::FArray = typedef FValue::Array |
| using UE::Json::FConstArray = typedef FValue::ConstArray |
| using UE::Json::FConstObject = typedef FValue::ConstObject |
| using UE::Json::FDocument = typedef rapidjson::GenericDocument<FEncoding, FAllocator> |
| using UE::Json::FDocumentEncoding = typedef rapidjson::UTF16BE<TCHAR> |
| using UE::Json::FEncoding = typedef rapidjson::UTF16<TCHAR> |
| using UE::Json::FMember = typedef FValue::Member |
| using UE::Json::FObject = typedef FValue::Object |
| using UE::Json::FPrettyStringWriter = typedef rapidjson::PrettyWriter<FStringBuffer, FEncoding, FEncoding, FAllocator> |
| using UE::Json::FStringBuffer = typedef rapidjson::GenericStringBuffer<FEncoding, FAllocator> |
| using UE::Json::FStringRef = typedef FDocument::StringRefType |
| using UE::Json::FStringWriter = typedef rapidjson::Writer<FStringBuffer, FEncoding, FEncoding, FAllocator> |
| using UE::Json::FValue = typedef FDocument::ValueType |
| JSON_API TSharedPtr< FJsonObject > UE::Json::ConvertRapidJsonToSharedJsonObject | ( | FConstObject | Object | ) |
Converts from a RapidJSON object to a shared json object
| JSON_API TSharedPtr< FJsonValue > UE::Json::ConvertRapidJsonToSharedJsonValue | ( | const FValue & | Value | ) |
Converts from a RapidJSON value to a shared json value
| JSON_API TOptional< FDocument > UE::Json::ConvertSharedJsonToRapidJsonDocument | ( | const FJsonObject & | SrcObject | ) |
Converts from shared JSON object to a RapidJSON Document.
| int32 UE::Json::FindLineNumber | ( | const FStringView | JsonText, |
| uint32 | Offset | ||
| ) |
| JSON_API TOptional< FConstArray > UE::Json::GetArrayField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to find an array with the specified name
Returns a valid array ref if the field was found and it matches an array
| JSON_API TOptional< bool > UE::Json::GetBoolField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read a boolean with a specified name.
Returns the value, if found and matches the type explicitly
| JSON_API TOptional< double > UE::Json::GetDoubleField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read an double with a specified name.
Returns the value, if found and matches the type explicitly
|
inline |
Attempts to parse an enum from a string with a specified name
Returns the value, if found and matches the type explicitly
| JSON_API TOptional< int32 > UE::Json::GetInt32Field | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read an int32 with a specified name.
Returns the value, if found and matches the type explicitly
| JSON_API TOptional< int64 > UE::Json::GetInt64Field | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read an int64 with a specified name.
Returns the value, if found and matches the type explicitly
| JSON_API TOptional< FConstObject > UE::Json::GetObjectField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to find an object with the specified name
Returns a valid object ref if the field was found and it matches an object.
| JSON_API TOptional< FConstObject > UE::Json::GetRootObject | ( | const FDocument & | Document | ) |
Returns the root object, if that was the root type for the document
| JSON_API TOptional< FStringView > UE::Json::GetStringField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read a string with a specified name
Returns the value, if found and matches the type explicitly
| JSON_API TOptional< uint32 > UE::Json::GetUint32Field | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read an uint32 with a specified name.
Returns the value, if found and matches the type explicitly
| JSON_API TOptional< uint64 > UE::Json::GetUint64Field | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Attempts to read an uint64 with a specified name.
Returns the value, if found and matches the type explicitly
Return a string representation of type name, for debug logging purposes
| bool UE::Json::HasField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
| JSON_API bool UE::Json::HasNullField | ( | FConstObject | Object, |
| const TCHAR * | FieldName | ||
| ) |
Returns true if a field exists that is a null type
|
inline |
Make a RapidJSON reference to the given string.
|
inline |
Make a RapidJSON value that has a copy of the given string.
| JSON_API TValueOrError< FDocument, FParseError > UE::Json::Parse | ( | const FStringView | JsonText | ) |
Parse RapidJSON with default flags
| JSON_API TValueOrError< FDocument, FParseError > UE::Json::ParseInPlace | ( | TArrayView< TCHAR > | JsonText | ) |
Parse RapidJSON with default flags, into destructible memory, to reduce allocation counts.
JsonText must be a zero terminated string per the rapidjson documentation
| JSON_API JsonSimpleValueVariant UE::Json::ToSimpleJsonVariant | ( | const FJsonValue & | InJsonValue | ) |
|
inlineprotected |
Write a RapidJSON document as a compact string with default flags.
Write a RapidJSON document as a pretty string with default flags and tab indentation.
|
constexpr |