SELECT.JSON
Selects content from a source containing JSON-format.
Internally this command converts JSON to Xml, to make it possible to use the powerful XPath syntax to find and extract data.
Properties
From | Name of the Input Data Source. The input-source can contain either a file-path, a PBinaryStream object or the name of a data-source or a .Net Stream object. A Stream object can only be specified programmatically. |
To | Name of the Output Data Source. |
Parameters
@Context | Specifies in which context to find data in the JSON document. Examples:
Hint |
@Filter | Filter the result of the selected data. See Command Maps & Parameters for more information. |
@Order | Order the result of the selected data. See Command Maps & Parameters for more information. |
Map
From | XPath to the object containing the desired value. |
To | Name of the Header as it should be called in the Output table |
Script | Not supported by this Command.If you need to perform any manipulation via script, do this in a following step, by passing the result to another Command such as SELECT or SELECT.UNIQUE. |
Example
Below example shows data in JSON format followed by an Action to read the data.
{
"Product": [{
"@id": "101",
"SKU": "AudiA4",
"Title": "Audi A4 Limousine",
"Manufacturer": {
"Name": "Audi"
"Country": {
"@id": "DE",
"Continent": "Europe",
"Name": "Germany"
}
},
"Price": [{
"Currency": "USD",
"Amount": "55000"
},
{
"Currency": "EUR",
"Amount": "52000"
}]
}]
}
Below example of an Action to read the above data in JSON-format.
From | To | Command |
 |  | SELECT.JSON |
Product | @Context | Â |
@id | ID | Â |
SKU | Â | Â |
Manufacturer/Name | ManufacturerName | Â |
Manufacturer/Country/Name | Â | Â |
Manufacturer/Country/Continent | Continent | Â |
Price[Currency='USD']/Amount | Price_USD | Â |
- 1 Properties
- 2 Parameters
- 3 Map
- 4 Example