![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <JsonValue.h>
Inheritance diagram for FJsonValue:Static Public Member Functions | |
| static JSON_API TSharedPtr< FJsonValue > | Duplicate (const TSharedPtr< const FJsonValue > &Src) |
| static JSON_API TSharedPtr< FJsonValue > | Duplicate (const TSharedPtr< FJsonValue > &Src) |
| static JSON_API bool | CompareEqual (const FJsonValue &Lhs, const FJsonValue &Rhs) |
Public Attributes | |
| EJson | Type |
Protected Member Functions | |
| JSON_API | FJsonValue () |
| virtual JSON_API | ~FJsonValue () |
| virtual FString | GetType () const =0 |
| JSON_API void | ErrorMessage (const FString &InType) const |
Friends | |
| bool | operator== (const FJsonValue &Lhs, const FJsonValue &Rhs) |
| bool | operator!= (const FJsonValue &Lhs, const FJsonValue &Rhs) |
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.
|
protected |
|
protectedvirtualdefault |
Get a field of the same type as the argument
|
inline |
|
inline |
|
inline |
| const TArray< TSharedPtr< FJsonValue > > & FJsonValue::AsArray | ( | ) | const |
Returns this value as an array, logging an error and returning an empty array reference if not possible
| bool FJsonValue::AsBool | ( | ) | const |
Returns this value as a boolean, logging an error and returning false if not possible
| double FJsonValue::AsNumber | ( | ) | const |
Returns this value as a double, logging an error and returning zero if this is not an Json Number
|
virtual |
Returns this value as an object, throwing an error if this is not an Json Object
| FString FJsonValue::AsString | ( | ) | const |
Returns this value as a string, logging an error and returning an empty string if not possible
| FUtf8String FJsonValue::AsUtf8String | ( | ) | const |
Returns this value as a utf8 string, logging an error and returning an empty string if not possible
|
static |
|
static |
|
static |
|
protected |
|
virtual |
Returns the memory footprint for this object in Bytes, including sizeof(*this) and allocated memory. All children should implement this so their memory layout is properly accounted for
Reimplemented in TJsonValueString< CharType >, FJsonValueNumber, TJsonValueNumberString< CharType >, FJsonValueBoolean, FJsonValueArray, FJsonValueObject, and FJsonValueNull.
|
protectedpure virtual |
|
inline |
Returns true if this value is a 'null'
|
virtual |
Returns whether or not a caller should prefer a string representation of the value, rather than the natural JSON type
Reimplemented in TJsonValueNumberString< CharType >.
|
virtual |
Tries to convert this value to an array, returning false if not possible
Reimplemented in FJsonValueArray.
|
virtual |
Tries to convert this value to an array, returning false if not possible
Reimplemented in FJsonValueArray.
Tries to convert this value to a bool, returning false if not possible
Reimplemented in TJsonValueString< CharType >, FJsonValueNumber, TJsonValueNumberString< CharType >, and FJsonValueBoolean.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueString< CharType >, TJsonValueNumberString< CharType >, FJsonValueNumber, and FJsonValueBoolean.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueString< CharType >, and TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueString< CharType >, and TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueString< CharType >, and TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueString< CharType >, and TJsonValueNumberString< CharType >.
Tries to convert this value to a number, returning false if not possible
Reimplemented in TJsonValueNumberString< CharType >.
|
virtual |
Tries to convert this value to an object, returning false if not possible
Reimplemented in FJsonValueObject.
|
virtual |
Tries to convert this value to an object, returning false if not possible
Reimplemented in FJsonValueObject.
|
virtual |
Tries to convert this value to a string, returning false if not possible
Reimplemented in TJsonValueString< CharType >, FJsonValueNumber, TJsonValueNumberString< CharType >, and FJsonValueBoolean.
|
virtual |
Tries to convert this value to a utf8 string, returning false if not possible
Reimplemented in TJsonValueString< CharType >, FJsonValueNumber, TJsonValueNumberString< CharType >, and FJsonValueBoolean.
|
friend |
|
friend |
| EJson FJsonValue::Type |