2021.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
PlanetPress Workflow offers JSON support in and via the following tasks:
l The "XML/JSON Conversion" on page450 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
page600, "Create Print Content" on page616, "Create Web Content" on page620,
"Render Email Content" on page641, and the "Create Preview PDF" on page611 task.
l When the OL Connect "Execute Data Mapping" on page628 task or the OL Connect
"Retrieve Items" on page646 task is set to output Records in JSON, it outputs a JSON
Record Data List (see "Types of JSON in Workflow" on the facing page).
l The OL Connect Send "Get Data" on page577 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 page175 accept or return JSON data.
Page 91