UE · 2025年8月12日 0

UE DT Json Operate Plugin Operating instructions

1. Node Description

DT Json|Load

LoadStringToJsonObject

Generate Json object from string text

LoadFileToJsonObject

Generate Json object from file

LoadStringToJsonValue

Generate Json value from string text

LoadFileToJsonValue

Generate Json value from file

LoadStringToJsonValueArray

Generate Json value array from string text

LoadFileToJsonValueArray

Generate Json value array from file

DT Json|Save

JsonObjectToString

Json object formatted as a string

JsonObjectToFile

Json object is saved as UTF8 format file

JsonValueToString

Json value formatted as a string

JsonValueToFile

Json value is saved as UTF8 format file

JsonValueArrayToString

Json value array formatted as a string

JsonValueArrayToFile

Json value array is saved as UTF8 format file

DT Json|JsonObject

HasField

Checks whether a field with the specified name exists in the object.
Param FieldName The name of the field to check.
Return true if the field exists, false otherwise.

GetNumberField

Gets the field with the specified name as a number.
Ensures that the field is present and is of type Json number.
Param FieldName The name of the field to get.
Return The field's value as a number.

GetIntegerField

Gets a numeric field and casts to an int32

TryGetNumberField_Float

Get the field named FieldName as a number. Returns false if it doesn't exist or cannot be converted.

TryGetNumberField_Double

Get the field named FieldName as a number. Returns false if it doesn't exist or cannot be converted.

TryGetNumberField_Int32

Get the field named FieldName as a number, and makes sure it's within int32 range. Returns false if it doesn't exist or cannot be converted.

TryGetNumberField_Int32

Get the field named FieldName as a number, and makes sure it's within int32 range. Returns false if it doesn't exist or cannot be converted.

TryGetNumberField_Int64

Get the field named FieldName as a number. Returns false if it doesn't exist or cannot be converted.

TryGetNumberField_UInt8

Get the field named FieldName as a number, and makes sure it's within uint8 range. Returns false if it doesn't exist or cannot be converted. 

GetStringField

Get the field named FieldName as a string. 

TryGetStringField

Get the field named FieldName as a string. Returns false if it doesn't exist or cannot be converted. 

TryGetStringArrayField

Get the field named FieldName as an array of strings. Returns false if it doesn't exist or any member cannot be converted.

GetBoolField

Gets the field with the specified name as a boolean.
Ensures that the field is present and is of type Json number.
Param FieldName The name of the field to get.
Return The field's value as a boolean.

TryGetBoolField

Get the field named FieldName as a string. Returns false if it doesn't exist or cannot be converted.

GetArrayField

Get the field named FieldName as an array. 

TryGetArrayField

Try to get the field named FieldName as an array, or return false if it's another type 

GetObjectField

Gets the field with the specified name as a Json object.
Ensures that the field is present and is of type Json object.
Param FieldName The name of the field to get.
Return The field's value as a Json object.

TryGetObjectField

Try to get the field named FieldName as an object, or return false if it's another type 

SetNumberField

Add a field named FieldName with Number as value 

SetStringField

Add a field named FieldName with value of StringValue 

SetBoolField

Set a boolean field named FieldName and value of InValue

SetArrayField

Set an array field named FieldName and value of Array 

SetObjectField

Set an ObjectField named FieldName and value of JsonObject 

RemoveField

Removes the field with the specified name.
Param FieldName The name of the field to remove.

DT Json|JsonValue

AsNumber

Returns this value as a double, logging an error and returning zero if this is not an Json Number

AsString

Returns this value as a string, logging an error and returning an empty string if not possible

AsBool

Returns this value as a boolean, logging an error and returning false if not possible 

AsArray

Returns this value as an array, logging an error and returning an empty array reference if not possible 

AsObject

Returns this value as an object, throwing an error if this is not an Json Object 

TryGetNumber_Double

Tries to convert this value to a number, returning false if not possible 

TryGetNumber_Float

Tries to convert this value to a number, returning false if not possible 

TryGetNumber_Int32

Tries to convert this value to a number, returning false if not possible 

TryGetNumber_Int64

Tries to convert this value to a number, returning false if not possible 

TryGetNumber_UInt8

Tries to convert this value to a number, returning false if not possible 

TryGetString

Tries to convert this value to a string, returning false if not possible 

TryGetBool

Tries to convert this value to a bool, returning false if not possible 

TryGetArray

Tries to convert this value to an array, returning false if not possible 

TryGetObject

Tries to convert this value to an object, returning false if not possible 

IsNull

Returns true if this value is a 'null' 

2. Case Demonstration

3. Plugin Download

Json Operate | Fab