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

#include <JsonValue.h>

+ Inheritance diagram for FJsonValueObject:

Public Member Functions

JSON_API FJsonValueObject (TSharedPtr< FJsonObject > InObject)
 
virtual JSON_API ~FJsonValueObject ()
 
virtual JSON_API bool TryGetObject (const TSharedPtr< FJsonObject > *&OutObject) const override
 
virtual JSON_API bool TryGetObject (TSharedPtr< FJsonObject > *&OutObject) 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 TryGetArray (const TArray< TSharedPtr< FJsonValue > > *&OutArray) const
 
virtual JSON_API bool TryGetArray (TArray< TSharedPtr< FJsonValue > > *&OutArray)
 
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

TSharedPtr< FJsonObjectValue
 

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 Object Value.

Constructor & Destructor Documentation

◆ FJsonValueObject()

FJsonValueObject::FJsonValueObject ( TSharedPtr< FJsonObject InObject)

◆ ~FJsonValueObject()

FJsonValueObject::~FJsonValueObject ( )
virtualdefault

Member Function Documentation

◆ GetAllocatedSize()

SIZE_T FJsonValueObject::GetAllocatedSize ( ) const
protected

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

◆ GetMemoryFootprint()

SIZE_T FJsonValueObject::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 FJsonValueObject::GetType ( ) const
overrideprotectedvirtual

Implements FJsonValue.

◆ TryGetObject() [1/2]

bool FJsonValueObject::TryGetObject ( const TSharedPtr< FJsonObject > *&  Object) const
overridevirtual

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

Reimplemented from FJsonValue.

◆ TryGetObject() [2/2]

bool FJsonValueObject::TryGetObject ( TSharedPtr< FJsonObject > *&  Object)
overridevirtual

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

Reimplemented from FJsonValue.

Member Data Documentation

◆ Value

TSharedPtr<FJsonObject> FJsonValueObject::Value
protected

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