FJsonObject::GetNumberField

Gets the field with the specified name as a number.

Choose your operating system:

Windows

macOS

Linux

References

Module

Json

Header

/Engine/Source/Runtime/Json/Public/Dom/JsonObject.h

Include

#include "Dom/JsonObject.h"

Source

/Engine/Source/Runtime/Json/Private/Dom/JsonObject.cpp

Syntax

double GetNumberField
(
    const FString & FieldName
) const

Remarks

Gets the field with the specified name as a number.

Ensures that the field is present and is of type Json number.

Returns

The field's value as a number.

Parameters

Parameter

Description

FieldName

The name of the field to get.