{"id":209,"date":"2015-12-07T19:38:44","date_gmt":"2015-12-07T19:38:44","guid":{"rendered":"http:\/\/zappysys.com\/blog\/?p=209"},"modified":"2023-01-08T21:06:29","modified_gmt":"2023-01-08T21:06:29","slug":"export-json-from-sql-server-using-ssis","status":"publish","type":"post","link":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/","title":{"rendered":"5 Ways to Export JSON from SQL Server using SSIS"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>SQL Server 2012\u00a0and all previous versions lacking native JSON support, same theory is true for their ETL Platform SSIS. If you are one of them who wants to export JSON from SQL Server or any other RDBMS like MySQL, Oracle then you can easily\u00a0output complex\u00a0JSON using any of the following components.<\/p>\n<h2>Five ways of creating JSON inside SSIS<\/h2>\n<p>ZappySys toolset provides multiple ways creating JSON inside SSIS. You can choose method suitable for your scenario. Each method has pros and cons so choose it as per your need.<\/p>\n<h3>JSON File Destination<\/h3>\n<p><img decoding=\"async\" class=\"alignleft\" style=\"font-family: inherit; font-size: inherit;\" title=\"SSIS JSON Destination (Create JSON File)\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/json-file-destination\/ssis-json-file-destination.png\" alt=\"SSIS JSON Destination (Create JSON File)\" width=\"100\" \/><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-destination-connector\/\" target=\"_blank\" rel=\"noopener\">SSIS JSON Destination<\/a>\u00a0can be used to generate simple or complex JSON files out of relational data source such as SQL Server, Oracle, MySQL. In few clicks you can create desired JSON Shape from single or multiple tables (Parent\/Child Nested Documents).<\/p>\n<p><strong>PROS:<\/strong> Multiple data flow components can be attached. Which means unlike <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-json-file-task\/\" target=\"_blank\" rel=\"noopener\">Export JSON Task<\/a> you are not limited to OLEDB or ODBC Sources only.<\/p>\n<p><strong>CONS:<\/strong> When you remove upstream component it may break Dataset mappings. Also server side Lookup Option is not available. File Splitting Options not available.<\/p>\n<p>Here are <a href=\"https:\/\/zappysys.com\/blog\/category\/ssis\/components\/ssis-json-file-destination\/\" target=\"_blank\" rel=\"noopener\">some articles<\/a> for use case of this component.<\/p>\n<div id=\"attachment_5358\" style=\"width: 943px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5358\" class=\"size-full wp-image-5358\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\" alt=\"JSON File Destination - Generate JSON in SSIS from multiple inputs\" width=\"933\" height=\"784\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png 933w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source-300x252.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source-768x645.png 768w\" sizes=\"(max-width: 933px) 100vw, 933px\" \/><\/a><p id=\"caption-attachment-5358\" class=\"wp-caption-text\">JSON File Destination &#8211; Generate JSON in SSIS from multiple inputs<\/p><\/div>\n<h3>JSON Generator Transform<\/h3>\n<h3><span style=\"font-size: 16px;\"><img decoding=\"async\" class=\"alignleft\" title=\"JSON Generator Transform\" src=\"https:\/\/zappysys.com\/images\/SSIS-PowerPack\/ssis-json-generator-transform.png\" alt=\"JSON Generator Transform\" width=\"100\" \/><\/span><\/h3>\n<p><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-generator-transform\/\" target=\"_blank\" rel=\"noopener\">SSIS JSON Generator Transform<\/a>\u00a0can be used to generate single or multiple JSON documents from any type of data sources (e.g. SQL Server, MySQL, Flat File, Excel) inside data flow task. It takes multiple inputs and outputs JSON String Output Column which can be used to feed JSON to other downstream system.<\/p>\n<p><strong>PROS:<\/strong> Multiple data flow components can be attached. Which means unlike <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-json-file-task\/\" target=\"_blank\" rel=\"noopener\">Export JSON Task<\/a> you are not limited to OLEDB or ODBC Sources only.<\/p>\n<p><strong>CONS:<\/strong> When you remove upstream component it may break Dataset mappings. Also server side Lookup Option is not available. File Splitting Options not available. Output is JSON String Column.<\/p>\n<p>Here are <a href=\"https:\/\/zappysys.com\/blog\/category\/ssis\/components\/ssis-json-generator-transform\/\" target=\"_blank\" rel=\"noopener\">some articles<\/a> for use case of this transform.<\/p>\n<div id=\"attachment_4918\" style=\"width: 792px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/07\/ssis-preview-json-for-bigquery-dataset-insert.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-4918\" class=\"size-full wp-image-4918\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/07\/ssis-preview-json-for-bigquery-dataset-insert.png\" alt=\"Preview JSON - Generate for BigQuery Table Insert\" width=\"782\" height=\"640\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/07\/ssis-preview-json-for-bigquery-dataset-insert.png 782w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/07\/ssis-preview-json-for-bigquery-dataset-insert-300x246.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2017\/07\/ssis-preview-json-for-bigquery-dataset-insert-768x629.png 768w\" sizes=\"(max-width: 782px) 100vw, 782px\" \/><\/a><p id=\"caption-attachment-4918\" class=\"wp-caption-text\">Preview JSON &#8211; Generate for BigQuery Table Insert<\/p><\/div>\n<h3>Export JSON Task<\/h3>\n<p><em><img decoding=\"async\" class=\"alignleft\" src=\"https:\/\/zappysys.com\/images\/SSIS-PowerPack\/ssis-export-json-file-task.png\" alt=\"SSIS Export JSON File Task\" \/><\/em><a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-json-file-task\/\" target=\"_blank\" rel=\"noopener\">SSIS Export JSON File Task<\/a>\u00a0can be used to generate simple or complex JSON files out of relational data source such as SQL Server, Oracle, MySQL. It also support exporting directly to cloud (e.g. Azure Blob Storage, Amazon AWS S3, Secure FTP). In few clicks you can create desired JSON Shape from single or multiple tables (Parent\/Child Nested Documents)<\/p>\n<p><strong>PROS:<\/strong> Simple to use with flexible options to export to file, variable, AWS S3, Azure Blob, FTP \/ SFTP location. Allows to split records. File Splitting Options available (Split By Size\u00a0 \/ Row Count).<\/p>\n<p><strong>CONS:<\/strong> You can only use limited data sources as Dataset input (e.g. OLEDB \/ ODBC or SQL Server).<\/p>\n<p>Here are <a href=\"https:\/\/zappysys.com\/blog\/category\/ssis\/tasks\/ssis-json-export-task\/\" target=\"_blank\" rel=\"noopener\">some articles<\/a> for use case of this task.<\/p>\n<h3>Template Transform<\/h3>\n<p><img decoding=\"async\" class=\"alignleft\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/template-transform\/ssis-template-transform.png\" alt=\"SSIS SSIS Template Transform\" \/>Template Transform can be used to create dynamic strings inside data flow. You can use upstream columns as placeholders or use SSIS variables anywhere in the template to create desired text (e.g. XML \/ JSON document).<\/p>\n<p><strong>PROS:<\/strong> Very Simple to use.<\/p>\n<p><strong>CONS:<\/strong> Cannot use multiple inputs. It may not be used to create Complex JSON and options like do not output NULL attributes is not possible.<\/p>\n<p>&nbsp;<\/p>\n<p>Here are <a href=\"https:\/\/zappysys.com\/blog\/category\/ssis\/components\/ssis-template-transform\/\" target=\"_blank\" rel=\"noopener\">some articles<\/a> for use case of this transform.<\/p>\n<div id=\"attachment_2614\" style=\"width: 983px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-template-transform-create-json-xml-for-api-call.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-2614\" class=\"size-full wp-image-2614\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-template-transform-create-json-xml-for-api-call.png\" alt=\"Create JSON for API Request (POST) using SSIS Template Transform\" width=\"973\" height=\"611\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-template-transform-create-json-xml-for-api-call.png 973w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-template-transform-create-json-xml-for-api-call-300x188.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2018\/02\/ssis-template-transform-create-json-xml-for-api-call-768x482.png 768w\" sizes=\"(max-width: 973px) 100vw, 973px\" \/><\/a><p id=\"caption-attachment-2614\" class=\"wp-caption-text\">Create JSON for API Request (POST) using SSIS Template Transform<\/p><\/div>\n<h3>Logging Task (Control Flow Approach)<\/h3>\n<p><img decoding=\"async\" class=\"alignleft\" src=\"https:\/\/zappysys.com\/images\/SSIS-PowerPack\/ssis-logging-task.png\" \/>\u00a0Just like Template Transform you can use <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-logging-task-free\/\" target=\"_blank\" rel=\"noopener\">ZS Logging Task<\/a> to create JSON string from Template and Variable Placeholders.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Here is how to use Logging Task to save JSON into a variable.<\/p>\n<ol>\n<li>Select Variable which you like to Set on Logging Task<\/li>\n<li>Enter your Template JSON String which you like to produce (see example below). Notice the use of yyyy-MM-dd <a href=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/ssis-format-specifiers.htm\" target=\"_blank\" rel=\"noopener\">format specifier<\/a> and also JSONENCODE function.\n<pre class=\"lang:js decode:true\">{\r\n ActionId: {{User::vActionId}},\r\n CreatedOn: \"{{User::vOrderDate,yyyy-MM-ddTHH:mm:ss}}\",\r\n Notes: \"{{User::vNotes,JSONENCODE}}\"\r\n}<\/pre>\n<\/li>\n<li>Select Message Type = <strong>None<\/strong><\/li>\n<li><strong>Uncheck Append<\/strong>, and <strong>Prefix<\/strong> options like below\n<div id=\"attachment_222\" style=\"width: 732px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-222\" class=\"wp-image-222 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder.png\" alt=\"Creating JSON \/ XML Document using SSIS Logging Task\" width=\"722\" height=\"528\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder.png 722w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder-300x219.png 300w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><p id=\"caption-attachment-222\" class=\"wp-caption-text\">Creating JSON \/ XML Document using SSIS Logging Task<\/p><\/div><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Here are <a href=\"https:\/\/zappysys.com\/blog\/category\/ssis\/tasks\/ssis-logging-task\/\" target=\"_blank\" rel=\"noopener\">some articles<\/a> for use case of this task.<\/p>\n<p>&nbsp;<\/p>\n<h2>Create JSON using SSIS Export JSON Task<\/h2>\n<p>Now let&#8217;s look at Export JSON Task form example to create JSON. Steps listed in below sections are very similar to JSON File Destination or JSON Generator Transform.<\/p>\n<p>ZappySys offers innovative Layout Editor for JSON \/ XML creation from multiple sources. You can use Layout Editor to produce desired JSON Layout (Layout is stored in XML\u00a0format behind the scene) and then in later step you will see how to make it dynamic so values are changed at runtime.<\/p>\n<p>You can read layout as direct value, read from variable or read from file from disk.<\/p>\n<h3>Select source connection for data<\/h3>\n<p>First lets create new OLEDB or ADO.net connection from where we will read data. In our case we reading from Northwind Database.<\/p>\n<div id=\"attachment_216\" style=\"width: 565px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-task-source-connection.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-216\" class=\"size-full wp-image-216\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-task-source-connection.png\" alt=\"SSIS JSON Export Task - Select Source Database Connection\" width=\"555\" height=\"218\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-task-source-connection.png 555w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-task-source-connection-300x118.png 300w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/a><p id=\"caption-attachment-216\" class=\"wp-caption-text\">SSIS JSON Export Task &#8211; Select Source Database Connection<\/p><\/div>\n<h3>Create Datasets<\/h3>\n<p>Now add datasets which will be used to produce JSON File. One dataset will be always Root Dataset (Example: If your Root information is about customer then select customer table or query as your Main dataset. All other sections will be child sections)<\/p>\n<div id=\"attachment_215\" style=\"width: 419px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-source-dataset.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-215\" class=\"size-full wp-image-215\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-source-dataset.png\" alt=\"Add SQL Dataset - Export JSON from SQL Query Option\" width=\"409\" height=\"431\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-source-dataset.png 409w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-source-dataset-285x300.png 285w\" sizes=\"(max-width: 409px) 100vw, 409px\" \/><\/a><p id=\"caption-attachment-215\" class=\"wp-caption-text\">Add SQL Dataset &#8211; Export JSON from SQL Query Option<\/p><\/div>\n<h3>Add Output Columns for Main JSON Document<\/h3>\n<p>Now its time to add columns for our output. If * is added by default then remove. * means output all columns. When you add columns first make sure you select correct parent node under which you want to add columns. In our case &#8220;Mappings&#8221; is parent node.<\/p>\n<div id=\"attachment_214\" style=\"width: 391px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-add-columns.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-214\" class=\"size-full wp-image-214\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-add-columns.png\" alt=\"Add Output Columns for JSON Document - Column Selection Screen\" width=\"381\" height=\"446\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-add-columns.png 381w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-add-columns-256x300.png 256w\" sizes=\"(max-width: 381px) 100vw, 381px\" \/><\/a><p id=\"caption-attachment-214\" class=\"wp-caption-text\">Add Output Columns for JSON Document &#8211; Column Selection Screen<\/p><\/div>\n<h3>Add JSON Array \/ JOIN Conditions for related document<\/h3>\n<p>Now let&#8217;s look at how to add JSON Array. For example Customer may have one or more Orders so we need to add node called Orders which may Produce JSON fragment like below<\/p>\n<p><span class=\"lang:default decode:true crayon-inline\">Orders : [ {&#8230;} , {&#8230;} ]\u00a0 <\/span><\/p>\n<p>Once customer related columns added, its time to add Orders section.<\/p>\n<ol>\n<li>This is Array of documents so first highlight &#8220;Mappings&#8221; node<\/li>\n<li>Click &#8220;Add Document Array&#8221; option from toolbar.<\/li>\n<li>On Add\/Edit\u00a0Elements\u00a0UI specify name for JSON Attribute and specify correct relationship to parent dataset. In our case Orders related to Customers using CustomerID key.<\/li>\n<\/ol>\n<div id=\"attachment_212\" style=\"width: 548px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-parent-child-relation.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-212\" class=\"size-full wp-image-212\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-parent-child-relation.png\" alt=\"Add Child Section - nested JSON document , Define Parent-Child Relationship\" width=\"538\" height=\"432\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-parent-child-relation.png 538w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-output-from-sql-server-parent-child-relation-300x241.png 300w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/a><p id=\"caption-attachment-212\" class=\"wp-caption-text\">Add Child Section &#8211; nested JSON document , Define Parent-Child Relationship<\/p><\/div>\n<h3>Handling JSON Array with dummy root dataset (Multiple Arrays)<\/h3>\n<p>So in previous section we saw how to add array and define JOIN condition with parent dataset. Now what if you really have no parent dataset to join with ? For example we need to produce following sample JSON where Order array is related to Customer by common Column CustomerID as JOIN column. But Customer is not bound with any parent column. So how do you define JOIN condition? In such case you have to use below technique called dummy root dataset. (See next section on how to handle only one dataset using <strong>Single Dataset Array Mode<\/strong>)<\/p>\n<p><strong>Sample JSON (Dummy root pattern)<\/strong><\/p>\n<pre class=\"lang:js decode:true\">{\r\n    \"Customers\": [\r\n      {\r\n        \"CustomerID\": \"ALFKI\",\r\n        \"CompanyName\": \"Alfreds Futterkiste\",\r\n        \"Orders\": [\r\n          {\r\n            \"OrderID\": 1000,\r\n            \"OrderDate\": \"2015-12-01\"\r\n          },\r\n          {\r\n            \"OrderID\": 1001,\r\n            \"OrderDate\": \"2015-12-01\"\r\n          }\r\n        ]\r\n      },\r\n\r\n      {\r\n        \"CustomerID\": \"ANATR\",\r\n        \"CompanyName\": \"Ana Trujillo Emparedados y helados\",\r\n        \"Orders\": [\r\n          {\r\n            \"OrderID\": 1002,\r\n            \"OrderDate\": \"2015-12-01\"\r\n          },\r\n          {\r\n            \"OrderID\": 1003,\r\n            \"OrderDate\": \"2015-12-01\"\r\n          }\r\n        ]\r\n      }\r\n\r\n    ]\r\n  }\r\n}<\/pre>\n<p>Since root level always needs dataset, we must provide dummy dataset (only one row) even though there is no need for Parent Dataset JOIN in Customer Array. Typically you can write query like below to product dummy row in SQL Server or other database using OLEDB Source or Use\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/dummy-data-source-free\/\" target=\"_blank\" rel=\"noopener\">Dummy Data Source<\/a>\u00a0with Max Rows=1 setting to produce one fake record.<\/p>\n<pre class=\"lang:default decode:true\">SELECT 1 as Col1<\/pre>\n<p><strong>Using Dummy DataSource as Input<\/strong><\/p>\n<p>For generating JSON which needs dummy root. Perform the following steps<\/p>\n<ol>\n<li>Drag Dummy Data Source from SSIS Toolbox. Change <strong>How many rows<\/strong> to 1. Click OK<\/li>\n<li>Now drag two more OLEDB sources and Configure (e.g. Customers and Orders)<\/li>\n<li>Now drag <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-file-destination-connector\/\">ZS JSON FIle Destination<\/a> component or <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-json-generator-transform\/\">ZS JSON Generator<\/a><\/li>\n<li>Now connect Dummy datasource then Customers and then Orders<\/li>\n<li>Double click JSON component to configure layout. You may notice that Dummy Input is set as Root by default.<\/li>\n<li>You can now select Mappings node and click on Add Array Documents icon. Configure like below. Notice we have not selected any JOIN criteria because its joined with Dummy Root.\n<div id=\"attachment_5357\" style=\"width: 785px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/dummy-root-pattern-ssis-json-export.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5357\" class=\"size-full wp-image-5357\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/dummy-root-pattern-ssis-json-export.png\" alt=\"Add array to join with dummy dataset\" width=\"775\" height=\"617\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/dummy-root-pattern-ssis-json-export.png 775w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/dummy-root-pattern-ssis-json-export-300x239.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/dummy-root-pattern-ssis-json-export-768x611.png 768w\" sizes=\"(max-width: 775px) 100vw, 775px\" \/><\/a><p id=\"caption-attachment-5357\" class=\"wp-caption-text\">Add array to join with dummy dataset<\/p><\/div><\/li>\n<li>Now select newly added node and Click Add column icon to add CustomerID, CompanyName column under Customers array<\/li>\n<li>Now select Customers array node and click Array Documents icon to Add Orders array.<\/li>\n<li>Once Orders Array ia added you can Select Orders node and Insert new element to add OrderID and OrderDate columns<\/li>\n<li>Finally it will look like below\n<div id=\"attachment_5358\" style=\"width: 943px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5358\" class=\"size-full wp-image-5358\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\" alt=\"JSON File Destination - Generate JSON in SSIS from multiple inputs\" width=\"933\" height=\"784\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png 933w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source-300x252.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source-768x645.png 768w\" sizes=\"(max-width: 933px) 100vw, 933px\" \/><\/a><p id=\"caption-attachment-5358\" class=\"wp-caption-text\">JSON File Destination &#8211; Generate JSON in SSIS from multiple inputs<\/p><\/div><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h3>Single dataset used as array<\/h3>\n<p>Now lets look at one more pattern just like described in the previous section but now we have just one nested level (Only customers and not using Orders). If you have such case then choose Single dataset pattern option in the output mode. On Export Task you may see as check box rather than dropdown. To produced desired JSON (see blow) perform these steps.<\/p>\n<ol>\n<li>Select Output mode as <strong>Single Dataset Array<\/strong><\/li>\n<li>In your Layout builder click on <strong>Add Document Array<\/strong> Icon and name it &#8220;Customers&#8221;.<\/li>\n<li>After that highlight newly added node &gt; Right-Click &gt; <strong>Add Elements<\/strong> under that node<\/li>\n<li>That&#8217;s it you will now see preview like below.<\/li>\n<\/ol>\n<pre class=\"lang:js decode:true\">{\r\n    \"Customers\": [\r\n      {\r\n        \"CustomerID\": \"ALFKI\",\r\n        \"CompanyName\": \"Alfreds Futterkiste\"\r\n      },\r\n\r\n      {\r\n        \"CustomerID\": \"ANATR\",\r\n        \"CompanyName\": \"Ana Trujillo Emparedados y helados\"\r\n      }\r\n    ]\r\n  }\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h3>How to export JSON in 2D Array format<\/h3>\n<p>If you have to export JSON as 2D array format then you can change following option.<\/p>\n<p><img decoding=\"async\" class=\"figureimage\" title=\"SSIS Export to JSON File Task - Export as 2D Array\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-json-file-task\/ssis-export-json-2d-array-format.png\" alt=\"SSIS Export JSON File Task - Export as 2D Array\" \/><\/p>\n<p>Here are examples of output for each option.<br \/>\nSelect say you have source data with 2 columns <i>id<\/i> and <i>name<\/i>.<\/p>\n<p><b>Default<\/b><\/p>\n<pre>[{id:1,name:\"AA\"}, {id:2,name:\"BB\"}]<\/pre>\n<p><b>Multicontent<\/b><\/p>\n<pre>{id:1,name:\"AA\"}{id:2,name:\"BB\"}<\/pre>\n<p><b>ArrayDocs<\/b><\/p>\n<pre>[{id:1,name:\"AA\"}, {id:2,name:\"BB\"}]<\/pre>\n<p><b>Array2D<\/b><\/p>\n<pre>[[1,\"AA\"],[2,\"BB\"]]<\/pre>\n<p><b>Array2DWithHeader<\/b><\/p>\n<pre>[[\"id\",\"name\"],[1,\"AA\"],[2,\"BB\"]]<\/pre>\n<p><b>ArrayLines<\/b><\/p>\n<pre>[1,\"AA\"][2,\"BB\"]<\/pre>\n<p><b>ArrayLinesWithHeader<\/b><\/p>\n<pre>[\"id\",\"name\"][1,\"AA\"][2,\"BB\"]<\/pre>\n<p>&nbsp;<\/p>\n<h3>Preview JSON output using live preview<\/h3>\n<p>You can enable \/ disable Live preview of JSON layout as below.<\/p>\n<div id=\"attachment_210\" style=\"width: 573px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-210\" class=\"size-full wp-image-210\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis.png\" alt=\"JSON Output preview in SSIS Export JSON File Task\" width=\"563\" height=\"475\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis.png 563w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis-300x253.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/a><p id=\"caption-attachment-210\" class=\"wp-caption-text\">JSON Output preview in SSIS Export JSON File Task<\/p><\/div>\n<h2>Make things dynamic (Using SSIS Variable for SQL or Layout)<\/h2>\n<p>There will be a time when you have use dynamic values in your JSON generation. You may have to Alias something from variable or you have to supply Variable in your SQL used for Dataset. Not to worry. ZappySys Supports multiple ways to make it dynamic. You can use SSIS Variables following 3 ways to make Layout XML dynamic.<\/p>\n<ol>\n<li>Use SSIS variable inside Dataset SQL (Only for <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-json-file-task\/\" target=\"_blank\" rel=\"noopener\">ZS Export JSON Task<\/a>)<\/li>\n<li>Anywhere inside Layout XML (Click <strong>Edit Code<\/strong> option)<\/li>\n<li>Load Layout From Variable (Indirect Method)<\/li>\n<\/ol>\n<h3>Using Variable inside Dataset SQL<\/h3>\n<p>Here is how you can use Variable inside dataset SQL for\u00a0<a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-json-file-task\/\" target=\"_blank\" rel=\"noopener\">ZS Export JSON Task<\/a><\/p>\n<div id=\"attachment_5359\" style=\"width: 736px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-dynamic-dataset-sql-use-variable.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5359\" class=\"size-full wp-image-5359\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-dynamic-dataset-sql-use-variable.png\" alt=\"SSIS Export JSON Task - Using Variable for Dynamic SQL\" width=\"726\" height=\"538\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-dynamic-dataset-sql-use-variable.png 726w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-export-json-dynamic-dataset-sql-use-variable-300x222.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><p id=\"caption-attachment-5359\" class=\"wp-caption-text\">SSIS Export JSON Task &#8211; Using Variable for Dynamic SQL<\/p><\/div>\n<h3>Using Variable inside Layout XML<\/h3>\n<p>Here is how you can insert SSIS Variable anywhere in Layout XML. In below Example we are choosing Alias for one column from some SSIS Variable.<\/p>\n<div id=\"attachment_5360\" style=\"width: 865px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-file-destination-use-ssis-variable-dynamic-layout.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5360\" class=\"size-full wp-image-5360\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-file-destination-use-ssis-variable-dynamic-layout.png\" alt=\"SSIS JSON File Destination - Using SSIS Variable for Dynamic Layout\" width=\"855\" height=\"591\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-file-destination-use-ssis-variable-dynamic-layout.png 855w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-file-destination-use-ssis-variable-dynamic-layout-300x207.png 300w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-json-file-destination-use-ssis-variable-dynamic-layout-768x531.png 768w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/a><p id=\"caption-attachment-5360\" class=\"wp-caption-text\">SSIS JSON File Destination &#8211; Using SSIS Variable for Dynamic Layout<\/p><\/div>\n<h3>Load Layout From Variable<\/h3>\n<p>If you have some need to load Layout XML from File or SSIS Variable. You can use Load Layout from Variable Option.<\/p>\n<p>For example in below screenshot we are creating layout first and ave to some variable. Or you can load from external file using <a href=\"https:\/\/zappysys.com\/products\/ssis-powerpack\/ssis-file-system-task-advanced\/\">ZS Advanced File System Task<\/a>.\u00a0 Connect Logging task to Export JSON Task and you ready to produce JSON.<\/p>\n<div id=\"attachment_222\" style=\"width: 732px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-222\" class=\"size-full wp-image-222\" src=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder.png\" alt=\"Set SSIS Variable value (multi-line content using placeholder)\" width=\"722\" height=\"528\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder.png 722w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/set-ssis-variable-value-multi-line-placeholder-300x219.png 300w\" sizes=\"(max-width: 722px) 100vw, 722px\" \/><\/a><p id=\"caption-attachment-222\" class=\"wp-caption-text\">Set SSIS Variable value (multi-line content using placeholder)<\/p><\/div>\n<p>Here is how to load Layout From any SSIS Variable. You can also load Layout from XML file or Variable which contains layout File Path.<\/p>\n<div id=\"attachment_210\" style=\"width: 573px\" class=\"wp-caption alignnone\"><a href=\"\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-210\" class=\"wp-image-210 size-full\" src=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis.png\" alt=\"JSON Layout from SSIS Variable\" width=\"563\" height=\"475\" srcset=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis.png 563w, https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/sql-server-json-output-preview-ssis-300x253.png 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/a><p id=\"caption-attachment-210\" class=\"wp-caption-text\">JSON Layout from SSIS Variable<\/p><\/div>\n<h2>Other JSON Output Options<\/h2>\n<p>Execute package and verify generated JSON it should look like below (Date format may be different in your case if you have set different on JSON options tab). For clarity we have formatted JSON below but in your output it may be compact version so reduce file size.<\/p>\n<h3>Indent JSON Output<\/h3>\n<p>You can check Indent option to make JSON look pretty like below.<\/p>\n<pre class=\"lang:js decode:true\">{\r\n  \"CustomerID\": \"ALFKI\",\r\n  \"CompanyName\": \"Alfreds Futterkiste\",\r\n  \"ContactName\": null,\r\n  \"Orders\": [\r\n    {\r\n      \"OrderID\": 10643,\r\n      \"OrderDate\": \"1997-08-25T00:00:00\"\r\n    },\r\n    {\r\n      \"OrderID\": 10692,\r\n      \"OrderDate\": \"1997-10-03T00:00:00\"\r\n    },\r\n    {\r\n      \"OrderID\": 10702,\r\n      \"OrderDate\": \"1997-10-13T00:00:00\"\r\n    },\r\n    {\r\n      \"OrderID\": 10835,\r\n      \"OrderDate\": \"1998-01-15T00:00:00\"\r\n    },\r\n    {\r\n      \"OrderID\": 10952,\r\n      \"OrderDate\": \"1998-03-16T00:00:00\"\r\n    },\r\n    {\r\n      \"OrderID\": 11011,\r\n      \"OrderDate\": \"1998-04-09T00:00:00\"\r\n    }\r\n  ]\r\n}<\/pre>\n<h3>Hide NULL Attribute Option<\/h3>\n<p>There will be a time when you want to Hide NULL attribute rather than showing <strong>MyAttr: null<\/strong>\u00a0this is also possible by checking Hide NULL Attribute Option on Options Tab.<\/p>\n<h2>Export JSON to Amazon S3, Azure Blob, Secure FTP (SFTP \/ FTPS)<\/h2>\n<p>Export JSON Task support some really good options to save file to other than local file system. If you want to export JSON directly to Amazon \/ Azure Cloud or FTP Server without saving to local disk then you can use Azure \/ FTP \/ Amazon Connection Manager on Target Tab of Export JSON Task. This option is only available for <strong>PRO Edition<\/strong> Users.<\/p>\n<div style=\"width: 666px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full\" src=\"https:\/\/zappysys.com\/onlinehelp\/ssis-powerpack\/scr\/images\/export-json-file-task\/ssis-export-sql-tables-to-json-file-azure-blob-amazon-s3-secure-ftp-split-gzip-compress.png\" alt=\"Export JSON \/ CSV \/ XML Files to Azure Blob, Amazon S3, Secure FTP Storage\" width=\"656\" height=\"440\" \/><p class=\"wp-caption-text\">Export JSON \/ CSV \/ XML Files to Azure Blob, Amazon S3, Secure FTP Storage<\/p><\/div>\n<h2>Conclusion<\/h2>\n<p>If you want to output JSON from SQL Server or any other relational DB then its not simple task in SSIS specially when you have nested JSON documents (e.g. Customer-&gt;Orders). In this post you have seen how to use <a href=\"\/\/zappysys.com\/products\/ssis-powerpack\/ssis-export-json-file-task\/\">SSIS JSON Export Task<\/a> to generate nested JSON from multiple datasets.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction SQL Server 2012\u00a0and all previous versions lacking native JSON support, same theory is true for their ETL Platform SSIS. If you are one of them who wants to export JSON from SQL Server or any other RDBMS like MySQL, Oracle then you can easily\u00a0output complex\u00a0JSON using any of the following components. Five ways of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5358,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94,323,131,145,267],"tags":[6,48,12,93,4],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\r\n<title>5 Ways to Export JSON from SQL Server using SSIS | ZappySys Blog<\/title>\r\n<meta name=\"description\" content=\"Export JSON from SQL Server using SSIS. Learn five ways to create JSON in SSIS. Output nested JSON, save to REST API, File, Secure FTP, Azure Blob, AWS S3\" \/>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"5 Ways to Export JSON from SQL Server using SSIS | ZappySys Blog\" \/>\r\n<meta property=\"og:description\" content=\"Export JSON from SQL Server using SSIS. Learn five ways to create JSON in SSIS. Output nested JSON, save to REST API, File, Secure FTP, Azure Blob, AWS S3\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/\" \/>\r\n<meta property=\"og:site_name\" content=\"ZappySys Blog\" \/>\r\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/ZappySys\/\" \/>\r\n<meta property=\"article:published_time\" content=\"2015-12-07T19:38:44+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2023-01-08T21:06:29+00:00\" \/>\r\n<meta property=\"og:image\" content=\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\" \/>\r\n\t<meta property=\"og:image:width\" content=\"933\" \/>\r\n\t<meta property=\"og:image:height\" content=\"784\" \/>\r\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\r\n<meta name=\"author\" content=\"ZappySys\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/zappysys\/\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ZappySys\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/\",\"url\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/\",\"name\":\"5 Ways to Export JSON from SQL Server using SSIS | ZappySys Blog\",\"isPartOf\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\",\"datePublished\":\"2015-12-07T19:38:44+00:00\",\"dateModified\":\"2023-01-08T21:06:29+00:00\",\"author\":{\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\"},\"description\":\"Export JSON from SQL Server using SSIS. Learn five ways to create JSON in SSIS. Output nested JSON, save to REST API, File, Secure FTP, Azure Blob, AWS S3\",\"breadcrumb\":{\"@id\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#primaryimage\",\"url\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\",\"contentUrl\":\"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png\",\"width\":933,\"height\":784,\"caption\":\"JSON File Destination - Generate JSON in SSIS from multiple inputs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/zappysys.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"5 Ways to Export JSON from SQL Server using SSIS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zappysys.com\/blog\/#website\",\"url\":\"https:\/\/zappysys.com\/blog\/\",\"name\":\"ZappySys Blog\",\"description\":\"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zappysys.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82\",\"name\":\"ZappySys\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g\",\"caption\":\"ZappySys\"},\"sameAs\":[\"http:\/\/www.zappysys.com\/\",\"https:\/\/www.facebook.com\/ZappySys\/\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/\"],\"url\":\"https:\/\/zappysys.com\/blog\/author\/admin\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"5 Ways to Export JSON from SQL Server using SSIS | ZappySys Blog","description":"Export JSON from SQL Server using SSIS. Learn five ways to create JSON in SSIS. Output nested JSON, save to REST API, File, Secure FTP, Azure Blob, AWS S3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/","og_locale":"en_US","og_type":"article","og_title":"5 Ways to Export JSON from SQL Server using SSIS | ZappySys Blog","og_description":"Export JSON from SQL Server using SSIS. Learn five ways to create JSON in SSIS. Output nested JSON, save to REST API, File, Secure FTP, Azure Blob, AWS S3","og_url":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/","og_site_name":"ZappySys Blog","article_author":"https:\/\/www.facebook.com\/ZappySys\/","article_published_time":"2015-12-07T19:38:44+00:00","article_modified_time":"2023-01-08T21:06:29+00:00","og_image":[{"width":933,"height":784,"url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png","type":"image\/png"}],"author":"ZappySys","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/zappysys\/","twitter_misc":{"Written by":"ZappySys","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/","url":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/","name":"5 Ways to Export JSON from SQL Server using SSIS | ZappySys Blog","isPartOf":{"@id":"https:\/\/zappysys.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#primaryimage"},"image":{"@id":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#primaryimage"},"thumbnailUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png","datePublished":"2015-12-07T19:38:44+00:00","dateModified":"2023-01-08T21:06:29+00:00","author":{"@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82"},"description":"Export JSON from SQL Server using SSIS. Learn five ways to create JSON in SSIS. Output nested JSON, save to REST API, File, Secure FTP, Azure Blob, AWS S3","breadcrumb":{"@id":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#primaryimage","url":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png","contentUrl":"https:\/\/zappysys.com\/blog\/wp-content\/uploads\/2015\/12\/ssis-generate-json-using-dummy-root-multiple-input-source.png","width":933,"height":784,"caption":"JSON File Destination - Generate JSON in SSIS from multiple inputs"},{"@type":"BreadcrumbList","@id":"https:\/\/zappysys.com\/blog\/export-json-from-sql-server-using-ssis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/zappysys.com\/blog\/"},{"@type":"ListItem","position":2,"name":"5 Ways to Export JSON from SQL Server using SSIS"}]},{"@type":"WebSite","@id":"https:\/\/zappysys.com\/blog\/#website","url":"https:\/\/zappysys.com\/blog\/","name":"ZappySys Blog","description":"SSIS \/ ODBC Drivers \/ API Connectors for JSON, XML, Azure, Amazon AWS, Salesforce, MongoDB and more","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zappysys.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/2756c237457fbc95d82cb38962f81f82","name":"ZappySys","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/zappysys.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c9be148088ba9b8af8e955c5f7c22b5?s=96&d=mm&r=g","caption":"ZappySys"},"sameAs":["http:\/\/www.zappysys.com\/","https:\/\/www.facebook.com\/ZappySys\/","https:\/\/twitter.com\/https:\/\/twitter.com\/zappysys\/"],"url":"https:\/\/zappysys.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/209"}],"collection":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":7,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":9914,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/posts\/209\/revisions\/9914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media\/5358"}],"wp:attachment":[{"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zappysys.com\/blog\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}