Table of Contents

GetJsonObject Procedure

Codeunit JSON Functions

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

Signature

GetJsonObject(JsonVariant: Variant; Path: Text) RetJsonObject: JsonObject

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

JsonObject

A JsonObject.

This documentation is generated from Smart Toolbox v27.1