Show / Hide Table of Contents

    GetVersion Procedure

    Codeunit JSON Functions

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

    Overloads

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

    GetVersion(JsonObject; Text) Procedure

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

    Signature

    GetVersion(JsonObj: JsonObject; Path: Text) : Version
    

    Parameters

    JsonObj JsonObject

    The JsonObject to read from.

    Path Text

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

    Returns

    Version

    The value found at Path as Version.

    GetVersion(JsonObject; Text; Boolean) Procedure

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

    Signature

    GetVersion(JsonObj: JsonObject; Path: Text; DefaultIfUndefined: Boolean) RetVersion: Version
    

    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 version is returned. If false an error is thrown if the value doesn't exist.

    Returns

    Version

    The value found at Path as Version.

    This documentation is generated from Smart Toolbox v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX