FB_JsonUtilities Functional Description

Overview

Type:

Function block

Available as of:

V1.4.15.0

Inherits from:

-

Implements:

-

Functional Description

The function block FB_JsonUtilities is used to process data which are provided in the JSON (refer to https://www.json.org) format.

The function block provides several methods and properties for processing the data. The data to be processed can be provided as a text stream in a variable of type STRING or ARRAY OF BYTE or as a file.

Using the methods and properties provided by the function block allows you to parse the data, to retrieve, to add or to delete an item. Further, it is provided to write the data as JSON-formatted text to a variable or into a file.

Encoding

Only data with ASCII encoding is supported.

Following escaped characters can be part of the JSON data and are converted by the parser:

Character

Description

\b

Backspace

\n

New line

\r

Carriage return

\t

Tab

\"

Double quote

\\

Backslash

\f

Form feed

\/

Slash