FJsonObject::GetBoolField

Gets the field with the specified name as a boolean.

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 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.