Skip to main content

Example: Using the JSON Utilities SL Library

Product: CODESYS IIOT Libraries SL

The JSON Utilities SL Example.project sample project, which includes visualizations to read and write data in JSON format, shows how to use the JSON Utilities SL library.

In addition to the JSON Utilities SL library, the package also contains the JSON Utilities SL Example.project sample project. The sample project provides three applications to show how to use the library.

Tip

To test the examples on a CODESYS Control Win, you can copy the test_utf16.json and test.json files from the target directory of the installation to the c:\temp directory.

Description

Application: JSONArrayExample

In the example, a JSON byte array is read and written. The data is displayed in a visualization.

_example_img_json_array.PNG

Application: JSONFileExample

In the example, a JSON file is read and written. The data is displayed in a visualization.

_example_img_json_file.PNG

Application: JSONFindValueExample

The example shows how to search for values in a JSON file.

_example_img_json_find_value.PNG

Application: JSONDataExample

JSON strings are generated in this application.

System requirements and restrictions

Programming system

CODESYS Development System (version 3.5.18.0 or higher)

Runtime system

CODESYS Control Win (version 3.5.18.0)

Add-on components

CODESYS IIoT Libraries SL-

Note

_example_icon.png DOWNLOAD projects