FJsonObject::TryGetNumberField

Get the field named FieldName 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

bool TryGetNumberField
(
    const FString & FieldName,
    double & OutNumber
) const

Remarks

Get the field named FieldName as a number. Returns false if it doesn't exist or cannot be converted.