

In our JSON file, these fields are inside the book object and book is inside bookstore:

In this example, we will select author, gender and language fields from the bookshop.json file. Path is used to specify the position of the objects in a JSON file. If there are brackets at the beginning and at the end of the end of the file, it is an array. If the data received is an array, you can specify the Array type. Response type is used to specify the format of the data received. Go to JSON response type, and select JsonObject.

In columns we have the following parameters: If everythig is green it means that everything is OK: Test will display errors if there are problems. Once selected the get option and the file, press Test: Here you have a table with the functionallity of each method: Method In Settings, select direct Input and press browse to select the bookshop.json file. This Task will be used to create the destination CSV file: Go to Integration Services>Integration Services Project:ĭrag and drop Data Flow Task to the design pane:ĭouble click Data Flow to enter to the Data Flow section and drag and drop JSON Source Component (this is the new component installed to handle JSON files):ĭrag and drop the Flat File Destination component. Go to SSDT and then go to File>New Project The installer will install the components in SSIS:

This is a free component of 550 KB approximately. This is an external component used to extract information from JSON. We will use a free component from Codeplex. The JSON file contains book information, including titles, genre, language and authors of the books. The JSON file named bookshop.json can be downloaded from the Resources section files at the end of this article. In this example, we will import the data from a JSON file to a CSV file. Please be sure the following are completed before trying the code in this article. If you have no experience in JSON, this article was created for you. SQL Server, Tabular Databases, Web Services, DocumentDB also use JSON for different purposes. That is why we will talk about JSON and how to import JSON data to a CSV file using SQL Server Integration Services (SSIS). JSON (Java Script Object Notation) is becoming more popular.
