Table of Contents

GetJsonArray Procedure

Codeunit JSON Functions

Reads the value at Path and returns the value as JsonArray. If the value isn't found an empty JsonArray will be returned.

Signature

GetJsonArray(JsonVariant: Variant; Path: Text) RetJsonArray: JsonArray

Parameters

JsonVariant Variant

Must be a JsonObject or a JsonToken, otherwise an error will be thrown.

Path Text

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

Returns

JsonArray

A JsonArray.

This documentation is generated from Smart Toolbox v27.1