FJsonObject::TryGetNumberField

Get the field named FieldName as a number, and makes sure it's within int32 range.

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,
    int32 & OutNumber
) const

Remarks

Get the field named FieldName as a number, and makes sure it's within int32 range. Returns false if it doesn't exist or cannot be converted.