Navigation
API > API/Runtime > API/Runtime/Json
A Json Object is a structure holding an unordered set of name/value pairs. In a Json file, it is represented by everything between curly braces {}.
| Name | FJsonObject |
| Type | class |
| Header File | /Engine/Source/Runtime/Json/Public/Dom/JsonObject.h |
| Include Path | #include "Dom/JsonObject.h" |
Syntax
class FJsonObject
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Values | TMap< FString, TSharedPtr< FJsonValue > > | Dom/JsonObject.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< TSharedPtr< FJsonValue > > & GetArrayField
(
FStringView FieldName |
Get the field named FieldName as an array. | Dom/JsonObject.h | |
const TArray< TSharedPtr< FJsonValue > > & GetArrayField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
bool GetBoolField
(
FStringView FieldName |
Gets the field with the specified name as a boolean. | Dom/JsonObject.h | |
bool GetBoolField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
TSharedPtr< FJsonValue > GetField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
TSharedPtr< FJsonValue > GetField
(
FStringView FieldName |
Dom/JsonObject.h | ||
TSharedPtr< FJsonValue > GetField
(
FStringView FieldName, |
Dom/JsonObject.h | ||
int32 GetIntegerField
(
FStringView FieldName |
Gets a numeric field and casts to an int32 | Dom/JsonObject.h | |
int32 GetIntegerField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
SIZE_T GetMemoryFootprint() |
Returns the memory footprint for this object in Bytes, including sizeof(*this) and allocated memory. | Dom/JsonObject.h | |
double GetNumberField
(
FStringView FieldName |
Gets the field with the specified name as a number. | Dom/JsonObject.h | |
double GetNumberField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
const TSharedPtr< FJsonObject > & GetObjectField
(
FStringView FieldName |
Gets the field with the specified name as a Json object. | Dom/JsonObject.h | |
const TSharedPtr< FJsonObject > & GetObjectField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
FString GetStringField
(
FStringView FieldName |
Get the field named FieldName as a string. | Dom/JsonObject.h | |
FString GetStringField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
FUtf8String GetUtf8StringField
(
FStringView FieldName |
Get the field named FieldName as a UTF8 string. | Dom/JsonObject.h | |
bool HasField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
bool HasField
(
FStringView FieldName |
Checks whether a field with the specified name exists in the object. | Dom/JsonObject.h | |
bool HasTypedField
(
FStringView FieldName, |
Checks whether a field with the specified name and type exists in the object. | Dom/JsonObject.h | |
bool HasTypedField
(
FStringView FieldName |
Checks whether a field with the specified name and type exists in the object. | Dom/JsonObject.h | |
bool HasTypedField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
void RemoveField
(
FStringView FieldName |
Removes the field with the specified name. | Dom/JsonObject.h | |
void RemoveField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
void SetArrayField
(
FString&& FieldName, |
Set an array field named FieldName and value of Array | Dom/JsonObject.h | |
void SetArrayField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetArrayField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetArrayField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetBoolField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetBoolField
(
FString&& FieldName, |
Set a boolean field named FieldName and value of InValue | Dom/JsonObject.h | |
void SetField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetField
(
FString&& FieldName, |
Sets the value of the field with the specified name. | Dom/JsonObject.h | |
void SetNumberField
(
FString&& FieldName, |
Add a field named FieldName with Number as value | Dom/JsonObject.h | |
void SetNumberField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetObjectField
(
FString&& FieldName, |
Set an ObjectField named FieldName and value of JsonObject | Dom/JsonObject.h | |
void SetObjectField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
const FString& FieldName, |
Dom/JsonObject.h | ||
void SetStringField
(
FString&& FieldName, |
Add a field named FieldName with value of StringValue | Dom/JsonObject.h | |
bool TryGetArrayField
(
FStringView FieldName, |
Try to get the field named FieldName as an array, or return false if it's another type | Dom/JsonObject.h | |
bool TryGetArrayField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetBoolField
(
FStringView FieldName, |
Get the field named FieldName as a string. | Dom/JsonObject.h | |
bool TryGetBoolField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetEnumArrayField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetEnumArrayField
(
FStringView FieldName, |
Get the field named FieldName as an array of enums. | Dom/JsonObject.h | |
TSharedPtr< FJsonValue > TryGetField
(
FStringView FieldName |
Attempts to get the field with the specified name. | Dom/JsonObject.h | |
TSharedPtr< FJsonValue > TryGetField
(
FAnsiStringView FieldName |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within uint32 range. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within uint16 range. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within uint8 range. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within int32 range. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within int16 range. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within int8 range. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number. | Dom/JsonObject.h | |
bool TryGetNumberField
(
FStringView FieldName, |
Get the field named FieldName as a number, and makes sure it's within uint64 range. | Dom/JsonObject.h | |
bool TryGetObjectField
(
FStringView FieldName, |
Try to get the field named FieldName as an object, or return false if it's another type | Dom/JsonObject.h | |
bool TryGetObjectField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetStringArrayField
(
FStringView FieldName, |
Get the field named FieldName as an array of strings. | Dom/JsonObject.h | |
bool TryGetStringArrayField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h | ||
bool TryGetStringField
(
FStringView FieldName, |
Get the field named FieldName as a string. | Dom/JsonObject.h | |
bool TryGetStringField
(
FAnsiStringView FieldName, |
Dom/JsonObject.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Duplicate
(
const TSharedPtr< const FJsonObject >& Source, |
Dom/JsonObject.h | ||
static void Duplicate
(
const TSharedPtr< FJsonObject >& Source, |
Dom/JsonObject.h |