2019.2

Table Of Contents
Attribute Description Categor
y
Jo
b
Grou
p
Docum
ent
Datapa
ge
Pag
e
to execute, as
set when
printing using
a Windows
driver.
Working with JSON
In online processes, it is common to send data to and retrieve data from a server. That data is
often exchanged in JSON format. JSON is short for JavaScript Object Notation. It is a way to
store information in a structured and easy-to-read format. It is often referred to as "XML without
nodes" and it is designed for exchanging data.
Refer to the following online resources for more information on JSON and its syntax:
l www.json.org
l www.w3schools.com
JSON support in Workflow tasks and scripts
PReS Workflow offers JSON support in and via the following tasks:
l The "XML/JSON Conversion" on page477 task converts an XML job file to JSON or a
JSON job file to XML.
l
The following OL Connect tasks accept JSON data as input: "Create Email Content" on
page625, "Create Print Content" on page640, "Create Web Content" on page643,
"Render Email Content" on page660, and the "Create Preview PDF" on page635 task.
l When the OL Connect "Execute Data Mapping" on page649 task or the OL Connect
"Retrieve Items" on page664 task is set to output Records in JSON, it outputs a JSON
Record Data List (see "Types of JSON in Workflow" on the next page).
l The OL Connect Send "Get Data" on page604 task can output its results to a JSON file.
In scripts written in any JSON-aware language (including JavaScript), JSON is obviously
supported.
Certain methods in the "Data Repository API" on page177 accept or return JSON data.
Page 92