JSON Utility

JSON Utility

Create New Json File

Create New Json File

Overview

Creates a new, empty JSON object for use in further JSON operations. This node is typically the starting point when building a new JSON structure from scratch. Once created, fields can be added using the various Set JSON Field nodes.

Inputs

None.

Outputs

  • Success – Returns true if the JSON object was successfully created.

  • Json Object – The newly created empty JSON object, ready for data to be added.


Convert Json To String

Convert Json To String

Overview

Converts a JSON object into a string format for storage, string manipulation, or display. This node serializes the given JSON object into a text-based JSON string. Optionally, you can enable Pretty Print to format the output with indentation and line breaks for easier readability.

Inputs

  • JSON Object – The JSON object you want to convert into a string.

  • Pretty Print – If checked, the output string will be human-readable with line breaks and indentation. If unchecked, the result will be compact.

Outputs

  • Success – Returns true if the JSON object was successfully converted to a string.

  • JSON String – The serialized string representation of the input JSON object.


String To Json Object

String To Json Object

Overview

Parses a JSON-formatted string and converts it into a usable JSON object within Unreal Engine. This node is typically used to deserialize data that was loaded from a file, received from a server, for quick debugging and testing or previously converted to a string format.

Note: The input string must be valid JSON. If the format is incorrect or malformed, the conversion will fail and return an empty or null object.

Inputs

  • Raw String Data – A string containing valid JSON text that you want to parse into a JSON object.

  • Field Name – The name of the field (as a string) to search for within the JSON object.

Outputs

  • Success – Returns true if the string was successfully parsed into a JSON object. Otherwise, returns false.

  • Loaded Json Object - The resulting JSON object that can be used with other JSON nodes.


Remove Json Field

Remove Json Field

Overview

Removes a specific field (key–value pair) from a given JSON object. This node returns a new JSON object identical to the input, except without the specified field. This is useful for cleaning or modifying data structures before saving, serializing, or sending.

Note: If the specified field does not exist, the original object is returned unchanged, and Success is set to false.

Inputs

  • JSON Object – The input JSON object from which you want to remove a field.

  • Field Name – The name of the field (as a string) to remove from the JSON object.

Outputs

  • Success – Returns true if the field was found and successfully removed. Otherwise, returns false.

  • New Json Object - A copy of the input JSON object with the specified field removed (if found).


Has Field

Has Field

Overview

Checks whether a specified field (key) exists within a given JSON object. This node is useful for verifying the presence of data before attempting to retrieve or operate on a specific field, helping prevent errors and ensure safer parsing.

Note: This node only checks the top-level of the provided JSON object. It does not search nested objects.

Inputs

  • JSON Object – The JSON object in which you want to search for a field.

  • Field to Find – The name of the field (as a string) to check for existence.

Outputs

  • Success – Returns true if the specified field exists in the JSON object. Otherwise, returns false.


Struct To Json String

Struct To Json String

Overview

Converts any given Unreal Engine Struct into a JSON-formatted string. This node serializes all the fields of the struct into a valid JSON text format, making it suitable for saving to files, sending over a network, or logging.

Inputs

  • In Struct (Wildcard) – The input struct to serialize into a JSON string.

  • Pretty Print – If checked, the output string will be human-readable with line breaks and indentation. If unchecked, the result will be compact.

Outputs

  • Success – Returns true if the struct was successfully converted into a JSON string.

  • Out JSON - The resulting JSON-formatted string representing the struct’s data.


Json To Struct

Json To Struct

Overview

Converts a JSON object into a corresponding Unreal Engine Struct. This node deserializes a JSON structure into a Blueprint struct, allowing you to convert JSON data directly inside Blueprints within seconds.

Note: The target struct must have its field names match the keys in the JSON object for the conversion to succeed. Each JSON object field name must be identical to struct field names.

Inputs

  • JSON Object – The input JSON object that you want to convert into a struct.

Outputs

  • Success – Returns true if the JSON was successfully parsed into the target struct. Otherwise, returns false.

  • Out Struct (Wildcard) - The resulting struct populated with the data from the JSON object.

Last updated

Was this helpful?