Unreal Engine Plugin
Json Object
Json Object for Unreal Engine: create, read and write JSON fields from Blueprints and C++ with the Internet Protocol plugin.
References
#include "json/json.h"
How to use
Blueprint: search by GetInternetProtocolSubsystem and call CreateJsonObject function
C++: Use the code bellow
#include "json/json.h"
UJavaScriptObjectNotation* Json = NewObject<UJavaScriptObjectNotation>();Fixes in 4.0
Try Get Object Fieldno longer crashes when the field is missing.To Stringon an unset object returns an empty string.Try Get Byte Array Fieldfills its result, and bool arrays are written as JSON booleans.- Integer64 values keep every digit, and numeric strings are read as Integer64 too.
Set Object Field/Set Object Array Fieldrefuse cycles (an object containing itself).
Nodes
Construct Json
- Must be called before use any json function.
- It also reset json object.
Construct JsonTarget is Java Script Object Notation
Target
Sucess
Failure
Construct Json From String
- Must be called before use any json function.
- It also reset json object.
Construct Json From StringTarget is Java Script Object Notation
Target
Data
Sucess
Failure
Is Valid
- Check if json is valid.
b Is Valid
Return Value
To String
- Parse json data to string.
To String
Return Value
Reset
- Reset json and clear all fields.
Construct JsonorConstruct Json From Stringmust be called again.
ResetTarget is Java Script Object Notation
Target
Sucess
Failure
Set Bool Field
Set Bool FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Bool Array Field
Set Bool Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Byte Field
Set Byte FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Byte Array Field
Set Byte Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Integer Field
Set Integer FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Integer Array Field
Set Integer Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Integer 64 Field
Set Integer 64 FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Integer 64 Array Field
Set Integer 64 Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Float Field
Set Float FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Float Array Field
Set Float Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set String Field
Set String FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set String Array Field
Set String FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Object Field
- Set a json object field.
Set Object FieldTarget is Java Script Object Notation
Target
Field Name
Value
Set Object Array Field
- Set a json object array field.
Set Object FieldTarget is Java Script Object Notation
Target
Field Name
Value
Remove Field
- Remove field by name.
Remove FieldTarget is Java Script Object Notation
Target
Field Name
Has Field
- Check if json object has field.
Has Field
Field Name
Return Value
Try Get Bool Field
Try Get Bool FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Bool Array Field
Try Get Bool Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Byte Field
Try Get Byte FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Byte Array Field
Try Get Byte Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Integer Field
Try Get Integer FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Integer Array Field
Try Get Integer Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Integer 64 Field
Try Get Integer 64 FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Integer 64 Array Field
Try Get Integer 64 Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Float Field
Try Get Float FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Float Array Field
Try Get Float Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get String Field
Try Get String FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get String Array Field
Try Get String Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Object Field
- Try get a json object field.
Try Get Object FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Try Get Object Array Field
- Try get a json object array field.
Try Get Object Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value