Introduction
The ZappySys JSON Parser Task is a free SSIS task that extracts values from JSON and saves them into SSIS variables using JSONPath expressions. This article uses the sample JSON from the task to show how to map values to variables, test them, and display the result with the Logging Task.
Prerequisites
- Download and install the ZappySys SSIS PowerPack.
When to use the JSON Parser Task
- You need a few values from JSON, such as an ID, a token, or a flag, to use in the rest of your package.
- Your JSON comes from a direct value, a file, or a variable set by a previous task (for example, an API response).
- You do not want to write a Script Task to parse JSON.
Steps
- Open the SSIS Variables pane (SSIS > Variables) and create these variables:
User::CustomerIDUser::AgeUser::CityUser::StateUser::FirstOrderID
- Drag the ZS JSON Parser Task from the SSIS Toolbox onto the Control Flow and double-click it to edit.
- Select Direct value as the source and paste the sample JSON:
{
"CustomerID": "ALFKI",
"CustomerName": "Alfredo Koli",
"Age": 55,
"LocationInfo": {"City":"Newyork", "State":"NY", "Zip":"23234"},
"OrderIDList": [111,222,333,444,555]
}
-
In the Value Mapping grid, enter the expressions below and leave the variable as
<LOG-TO-OUTPUT>for now: -
Click Test to check the expressions. The extracted values appear in the output
-
Click OK to save the configuration.
-
Drag the ZS Logging Task onto the Control Flow and connect it to the JSON Parser Task with the green arrow. Set the logging mode to show a message box and enter this message:
CustomerI D: {{User::CustomerID}}
Age: {{User::Age}}
City: {{User::City}}
State: {{User::State}}
First: {{User::FirstOrderID}}
- Run the package. The Logging Task shows a message box with the values stored in the variables.
Video tutorial
Conclusion
The JSON Parser Task extracts values from JSON into SSIS variables for free and without writing code. Paste or load your JSON, map expressions to variables in Value Mapping, test them, and use the variables in the rest of your package.
Still need help?
If you need assistance using the JSON Parser Task, please get in touch with our support team:
- Live Chat: Open the chat widget (bottom right of this page)
- Email: support@zappysys.com
- Support Center: Support | ZappySys


