.json
file extension when in a stand-alone file. ProcessMaker assets, such as Processes, Screens, and Scripts use the .json
file extension when that asset is exported from ProcessMaker.FullNameTask1
(labeled Full Name)SalutationTask1
(labeled Select Your Preferred Salutation)CompleteTask1
(labeled Complete Task 1)null
(no defined value)FullNameTask2
(labeled Full Name)VerifyPersonTask2
(labeled Select If You Know This Person)CompleteTask2
(labeled Complete Task 2)null
(no defined value)Do you know the following person by either of these attributes?
Name: Mister Louis Canera Email address: [email protected]
Do you know the following person by either of these attributes?
Name: {{ SalutationTask1 }} {{ FullNameTask1 }} Email address: {{ EmailAddressTask1 }}
FullNameTask1
(labeled Full Name)SalutationTask1
(labeled Select Your Preferred Salutation)"FullNameTask1": "Louis Canera"
{
and }
) represent the beginning and end of the JSON object, respectively.,
) must follow each element except the last element.:
) in each JSON object element. The JSON object element always has double quotation marks ("
) surrounding the key name. Key names cannot have spaces in them. In the example above, "FullNameTask1"
is the key name to reference this JSON object element."Louis Canera"
is the element's value.null
to mean that the element contains no value; JSON elements cannot be undefined, so null
defines that element with no value. See JSON Data Types.[
and ]
) surround the JSON array. ProcessMaker reads (parses) the order of these values from left to right. Values in an array may be of any data type JSON supports. Below is an example of a JSON array using values of the String data type.Product 1
, Product 2
, and Product 3
..
) instead of structured bracket format. As a designer, you may need to read or replace one of the following:Headquarters
element to replace that value with one from a third-party data source. Use the following JSON dot notation to reference that object element's value:data.
, which indicates to reference ProcessMaker Request data..
) to indicate each nested level. In this example, the object element from which to reference its value is not nested.[
and ]
), indicate from which element key name to reference its value. Therefore, use Headquarters
to reference the value corresponding with that element's key name.Product 1
, Product 2
, and Product 3
.Products
array to enter that value into a ProcessMaker asset, such as a Line Input control in a Screen to display that value. Use the following JSON dot notation to reference that value:data.
, which indicates to reference ProcessMaker Request data..
) to indicate each nested level. In this example, the array from which to reference its value is not nested.[
and ]
), indicate which value in the array to reference beginning with 0
. Therefore, to reference the second value in this array, use 1
in this JSON dot notation."1"
and 1
differently: the former is a String data type, while the latter is an Integer data type."
)."2020-02-03"
"2020-02-03 00:00:00"
{"FullName": "Louis Canera"}
{"Age": 25}
{
and }
).[
and ]
).{
"employees": ["Bob", "Ann", "Tom"]
}
true
represents a positive state, such as a control is selected.false
represents a negative state, such as a control is not selected.{"LeaveRequestProvided": true}
{"SubmitButton": null}
{
and }
) represent the beginning and end of the JSON object, respectively.[
and ]
) represent the beginning and end of the JSON array, respectively.,
) must follow each element in each JSON object except the last element. For example, "CompanyName": "Company"
is an element in this JSON object.Employees
array:Employees
contains four values, each a nested JSON object, that describe the employees at Company. Each nested JSON object contains nine elements with the following key names in this order:FirstName
LastName
Username
Office
Email
Title
Founder
YearsAtCompany
StockOptions
Username
from the Employees
array so that the Select List control displays BobBoss, BigD, HarryFeet, and BeattyRocker as options in the Task.Title
key name in all nested JSON objects.