FJsonObject::TryGetNumberField

Get the field named FieldName as a number, and makes sure it's within int8 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,
    int8 & OutNumber
) const

Remarks

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