Show / Hide Table of Contents

    GetBoolean Procedure

    Codeunit JSON Functions

    Reads the value at Path and returns the value as Boolean. An error will be thrown if the value doesn't exist.

    Overloads

    Name Description
    GetBoolean(JsonObject; Text): Boolean Reads the value at Path and returns the value as Boolean.
    GetBoolean(JsonObject; Text; Boolean): Boolean Reads the value at Path and returns the value as Boolean.

    GetBoolean(JsonObject; Text) Procedure

    Reads the value at Path and returns the value as Boolean. An error will be thrown if the value doesn't exist.

    Signature

    GetBoolean(JsonObj: JsonObject; Path: Text) : Boolean
    

    Parameters

    JsonObj JsonObject

    The JsonObject to read from.

    Path Text

    The JSONPath expression that will be used to get the requested value.

    Returns

    Boolean

    The value found at Path as Boolean.

    GetBoolean(JsonObject; Text; Boolean) Procedure

    Reads the value at Path and returns the value as Boolean.

    Signature

    GetBoolean(JsonObj: JsonObject; Path: Text; DefaultIfUndefined: Boolean) : Boolean
    

    Parameters

    JsonObj JsonObject

    The JsonObject to read from.

    Path Text

    The JSONPath expression that will be used to get the requested value.

    DefaultIfUndefined Boolean

    If true an error is not thrown if the value doesn't exist. Instead a blank boolean is returned. If false an error is thrown if the value doesn't exist.

    Returns

    Boolean

    The value found at Path as Boolean.

    This documentation is generated from Smart Toolbox v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX