Using JSON Parser Transform in SSIS to Extract Multiple Objects

Introduction

In this article, we will demonstrate how to extract two or more objects from a JSON and use them within the same data flow using the JSON Parser Transform. Working with JSON data in SSIS can be complex, especially when dealing with multiple nested objects. The ZappySys JSON Parser Transform simplifies this process by allowing you to extract and manipulate multiple JSON objects within a single data flow task, providing a streamlined and efficient approach to handling JSON data in your ETL processes.

Prerequisites

Steps

  1. Add a Data Flow task to your SSIS package.

  2. Inside the Data Flow, add a Source component that contains a JSON in a column. In our case, we will use our JSON Source with Example 1 from our component and check the option Output as RAW document.

  3. Preview the data and copy the JSON example from the column you will use. This will help in the following steps.

  4. Connect a Multicast component from Microsoft to the JSON Source.

  5. Drag and drop the required JSON Parser Transform components. We will use two for our objects: Employees and Books.

  6. In the first JSON Parser Transform, we will extract Employees. Select the column with the JSON, copy and paste the example into the component, use the Select filter, choose the object, and preview the data to verify. Click OK to save the configuration.

  7. In the next JSON Parser Transform, repeat the process for the Books object. Preview the data and click OK to save the configuration.

  8. Connect destination components to all the JSON Parser Transform components.

  9. Run the package and check the results.

Video Tutorial

Conclusion

Following these steps, you can effectively use multiple objects from the same source component within a data flow, leveraging the ZappySys tool for efficient data retrieval and integration. For assistance or inquiries, contact our support team via chat on our website.

References

For more information, refer to the JSON Parser Transform and JSON Source documentation.