Navigation
Unreal Engine C++ API Reference > Runtime > Json > Dom
Inheritance Hierarchy
- FJsonValue
- FJsonValueArray
- FJsonValueBoolean
- FJsonValueNull
- FJsonValueNumber
- FJsonValueNumberString
- FJsonValueObject
- FJsonValueString
References
Module | Json |
Header | /Engine/Source/Runtime/Json/Public/Dom/JsonValue.h |
Include | #include "Dom/JsonValue.h" |
Syntax
class FJsonValue
Remarks
A Json Value is a structure that can be any of the Json Types. It should never be used on its, only its derived types should be used.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
EJson | Type |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FJsonValue () |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
~FJsonValue () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AsArgumentType
(
TSharedPtr< FJsonObject >& Value |
|
![]() |
void | AsArgumentType
(
TArray< TSharedPtr< FJsonValue > >& Value |
|
![]() |
void | AsArgumentType
(
bool& Value |
|
![]() |
void | AsArgumentType
(
double& Value |
Get a field of the same type as the argument |
![]() |
void | AsArgumentType
(
FString& Value |
|
![]() ![]() |
const TArray< TSharedPtr< FJsonValue > > & | AsArray () |
Returns this value as an array, logging an error and returning an empty array reference if not possible |
![]() ![]() |
bool | AsBool () |
Returns this value as a boolean, logging an error and returning false if not possible |
![]() ![]() |
double | AsNumber () |
Returns this value as a double, logging an error and returning zero if this is not an Json Number |
![]() ![]() ![]() |
const TSharedPtr< FJsonObject > & | AsObject () |
Returns this value as an object, throwing an error if this is not an Json Object |
![]() ![]() |
FString | AsString () |
Returns this value as a string, logging an error and returning an empty string if not possible |
![]() ![]() |
bool | CompareEqual
(
const FJsonValue& Lhs, |
|
![]() ![]() |
TSharedPtr< FJsonValue > | Duplicate
(
const TSharedPtr< FJsonValue >& Src |
|
![]() ![]() |
void | ErrorMessage
(
const FString& InType |
|
![]() ![]() |
FString | GetType () |
|
![]() ![]() |
bool | IsNull () |
Returns true if this value is a 'null' |
![]() ![]() ![]() |
bool | Returns whether or not a caller should prefer a string representation of the value, rather than the natural JSON type | |
![]() ![]() ![]() |
bool | TryGetArray
(
const TArray< TSharedPtr< FJsonValue > >*& OutArray |
Tries to convert this value to an array, returning false if not possible |
![]() ![]() |
bool | TryGetArray
(
TArray< TSharedPtr< FJsonValue > >*& OutArray |
Tries to convert this value to an array, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetBool
(
bool& OutBool |
Tries to convert this value to a bool, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
uint64& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
uint32& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
uint16& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
uint8& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
int64& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
double& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
int16& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
int8& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
float& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetNumber
(
int32& OutNumber |
Tries to convert this value to a number, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetObject
(
const TSharedPtr< FJsonObject >*& Object |
Tries to convert this value to an object, returning false if not possible |
![]() ![]() |
bool | TryGetObject
(
TSharedPtr< FJsonObject >*& Object |
Tries to convert this value to an object, returning false if not possible |
![]() ![]() ![]() |
bool | TryGetString
(
FString& OutString |
Tries to convert this value to a string, returning false if not possible |