Skip to Content
Internet Protocol
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 Field no longer crashes when the field is missing.
  • To String on an unset object returns an empty string.
  • Try Get Byte Array Field fills 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 Field refuse 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
Function

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
Function

Is Valid

  • Check if json is valid.
b Is Valid
Return Value
Pure function

To String

  • Parse json data to string.
To String
Return Value
Pure function

Reset

ResetTarget is Java Script Object Notation
Target
Sucess
Failure
Function

Set Bool Field

Set Bool FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Bool Array Field

Set Bool Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Byte Field

Set Byte FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Byte Array Field

Set Byte Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Integer Field

Set Integer FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Integer Array Field

Set Integer Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Integer 64 Field

Set Integer 64 FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Integer 64 Array Field

Set Integer 64 Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Float Field

Set Float FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Float Array Field

Set Float Array FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set String Field

Set String FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set String Array Field

Set String FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Object Field

  • Set a json object field.
Set Object FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Set Object Array Field

  • Set a json object array field.
Set Object FieldTarget is Java Script Object Notation
Target
Field Name
Value
Function

Remove Field

  • Remove field by name.
Remove FieldTarget is Java Script Object Notation
Target
Field Name
Function

Has Field

  • Check if json object has field.
Has Field
Field Name
Return Value
Pure function

Try Get Bool Field

Try Get Bool FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Bool Array Field

Try Get Bool Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Byte Field

Try Get Byte FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Byte Array Field

Try Get Byte Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Integer Field

Try Get Integer FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Integer Array Field

Try Get Integer Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Integer 64 Field

Try Get Integer 64 FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Integer 64 Array Field

Try Get Integer 64 Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Float Field

Try Get Float FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get Float Array Field

Try Get Float Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get String Field

Try Get String FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

Try Get String Array Field

Try Get String Array FieldTarget is Java Script Object Notation
Target
Field Name
Success
Failure
Value
Function

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
Function

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
Function
Edit on GitHub

On this page