FJsonObject::GetBoolField

Gets the field with the specified name as a boolean.

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 GetBoolField
(
    const FString & FieldName
) const

Remarks

Gets the field with the specified name as a boolean.

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

Returns

The field's value as a boolean.

Parameters

Parameter

Description

FieldName

The name of the field to get.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss