UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FJsonValueArray Class Reference

#include <JsonValue.h>

+ Inheritance diagram for FJsonValueArray:

Public Member Functions

JSON_API FJsonValueArray (const TArray< TSharedPtr< FJsonValue > > &InArray)
 
JSON_API FJsonValueArray (TArray< TSharedPtr< FJsonValue > > &&InArray)
 
virtual JSON_API ~FJsonValueArray ()
 
virtual JSON_API bool TryGetArray (const TArray< TSharedPtr< FJsonValue > > *&OutArray) const override
 
virtual JSON_API bool TryGetArray (TArray< TSharedPtr< FJsonValue > > *&OutArray) override
 
virtual JSON_API SIZE_T GetMemoryFootprint () const override
 
- Public Member Functions inherited from FJsonValue
JSON_API double AsNumber () const
 
JSON_API FString AsString () const
 
JSON_API FUtf8String AsUtf8String () const
 
JSON_API bool AsBool () const
 
JSON_API const TArray< TSharedPtr< FJsonValue > > & AsArray () const
 
virtual JSON_API const TSharedPtr< FJsonObject > & AsObject () const
 
virtual JSON_API bool TryGetNumber (double &OutNumber) const
 
virtual JSON_API bool TryGetNumber (float &OutNumber) const
 
virtual JSON_API bool TryGetNumber (int8 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (int16 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (int32 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (int64 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (uint8 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (uint16 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (uint32 &OutNumber) const
 
virtual JSON_API bool TryGetNumber (uint64 &OutNumber) const
 
virtual JSON_API bool TryGetString (FString &OutString) const
 
virtual JSON_API bool TryGetUtf8String (FUtf8String &OutString) const
 
virtual JSON_API bool TryGetBool (bool &OutBool) const
 
virtual JSON_API bool TryGetObject (const TSharedPtr< FJsonObject > *&Object) const
 
virtual JSON_API bool TryGetObject (TSharedPtr< FJsonObject > *&Object)
 
virtual JSON_API bool PreferStringRepresentation () const
 
bool IsNull () const
 
void AsArgumentType (double &Value)
 
void AsArgumentType (FString &Value)
 
void AsArgumentType (bool &Value)
 
void AsArgumentType (TArray< TSharedPtr< FJsonValue > > &Value)
 
void AsArgumentType (TSharedPtr< FJsonObject > &Value)
 

Protected Member Functions

virtual JSON_API FString GetType () const override
 
JSON_API SIZE_T GetAllocatedSize () const
 
- Protected Member Functions inherited from FJsonValue
JSON_API FJsonValue ()
 
virtual JSON_API ~FJsonValue ()
 
JSON_API void ErrorMessage (const FString &InType) const
 

Protected Attributes

TArray< TSharedPtr< FJsonValue > > Value
 

Additional Inherited Members

- Static Public Member Functions inherited from FJsonValue
static JSON_API TSharedPtr< FJsonValueDuplicate (const TSharedPtr< const FJsonValue > &Src)
 
static JSON_API TSharedPtr< FJsonValueDuplicate (const TSharedPtr< FJsonValue > &Src)
 
static JSON_API bool CompareEqual (const FJsonValue &Lhs, const FJsonValue &Rhs)
 
- Public Attributes inherited from FJsonValue
EJson Type
 

Detailed Description

A Json Array Value.

Constructor & Destructor Documentation

◆ FJsonValueArray() [1/2]

FJsonValueArray::FJsonValueArray ( const TArray< TSharedPtr< FJsonValue > > &  InArray)

◆ FJsonValueArray() [2/2]

FJsonValueArray::FJsonValueArray ( TArray< TSharedPtr< FJsonValue > > &&  InArray)

◆ ~FJsonValueArray()

FJsonValueArray::~FJsonValueArray ( )
virtualdefault

Member Function Documentation

◆ GetAllocatedSize()

SIZE_T FJsonValueArray::GetAllocatedSize ( ) const
protected

Helper to calculate allocated size of the Value array and its contents

◆ GetMemoryFootprint()

SIZE_T FJsonValueArray::GetMemoryFootprint ( ) const
overridevirtual

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 from FJsonValue.

◆ GetType()

FString FJsonValueArray::GetType ( ) const
overrideprotectedvirtual

Implements FJsonValue.

◆ TryGetArray() [1/2]

bool FJsonValueArray::TryGetArray ( const TArray< TSharedPtr< FJsonValue > > *&  OutArray) const
overridevirtual

Tries to convert this value to an array, returning false if not possible

Reimplemented from FJsonValue.

◆ TryGetArray() [2/2]

bool FJsonValueArray::TryGetArray ( TArray< TSharedPtr< FJsonValue > > *&  OutArray)
overridevirtual

Tries to convert this value to an array, returning false if not possible

Reimplemented from FJsonValue.

Member Data Documentation

◆ Value

TArray<TSharedPtr<FJsonValue> > FJsonValueArray::Value
protected

The documentation for this class was generated from the following files: