<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Convert mysql DB Tabel to nested JSON in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/convert-mysql-db-tabel-to-nested-json/m-p/5310#M2353</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;im trying to create a JSON file from a mySQL Database Table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the table looks like this:&lt;/P&gt;&lt;P&gt;ID|Street|City|Type|FirstName|LastName&lt;/P&gt;&lt;P&gt;1|Somewherestreet|Somewherecity|Familyhead|Chris|Somebody&lt;/P&gt;&lt;P&gt;1|Somewherestreet|Somewherecity|FamilyMember|Anna|Somebody&lt;/P&gt;&lt;P&gt;1|Somewherestreet|Somewherecity|FamilyMember|Frank|Somebody&lt;/P&gt;&lt;P&gt;the desired output should look like this&lt;/P&gt;&lt;P&gt;"ID":"1",&lt;/P&gt;&lt;P&gt;"Street":"Somewherestreet",&lt;/P&gt;&lt;P&gt;"City":"Somewherecity"&lt;/P&gt;&lt;P&gt;"Type": "FamilyHead",&lt;/P&gt;&lt;P&gt;"FirstName": "Chris",&lt;/P&gt;&lt;P&gt;"LastName": "Somebody",&lt;/P&gt;&lt;P&gt;"Members":[&lt;/P&gt;&lt;P&gt;{"FirstName": "Anna",&lt;/P&gt;&lt;P&gt;"LastName": "Somebody"},&lt;/P&gt;&lt;P&gt;{"FirstName": "Frank",&lt;/P&gt;&lt;P&gt;"LastName": "Somebody"}&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;"ID":"2",&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ho can i group the data and create a clean nested json?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hint would be helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 09:37:16 GMT</pubDate>
    <dc:creator>ccontzen</dc:creator>
    <dc:date>2023-10-05T09:37:16Z</dc:date>
    <item>
      <title>Convert mysql DB Tabel to nested JSON</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/convert-mysql-db-tabel-to-nested-json/m-p/5310#M2353</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;im trying to create a JSON file from a mySQL Database Table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the table looks like this:&lt;/P&gt;&lt;P&gt;ID|Street|City|Type|FirstName|LastName&lt;/P&gt;&lt;P&gt;1|Somewherestreet|Somewherecity|Familyhead|Chris|Somebody&lt;/P&gt;&lt;P&gt;1|Somewherestreet|Somewherecity|FamilyMember|Anna|Somebody&lt;/P&gt;&lt;P&gt;1|Somewherestreet|Somewherecity|FamilyMember|Frank|Somebody&lt;/P&gt;&lt;P&gt;the desired output should look like this&lt;/P&gt;&lt;P&gt;"ID":"1",&lt;/P&gt;&lt;P&gt;"Street":"Somewherestreet",&lt;/P&gt;&lt;P&gt;"City":"Somewherecity"&lt;/P&gt;&lt;P&gt;"Type": "FamilyHead",&lt;/P&gt;&lt;P&gt;"FirstName": "Chris",&lt;/P&gt;&lt;P&gt;"LastName": "Somebody",&lt;/P&gt;&lt;P&gt;"Members":[&lt;/P&gt;&lt;P&gt;{"FirstName": "Anna",&lt;/P&gt;&lt;P&gt;"LastName": "Somebody"},&lt;/P&gt;&lt;P&gt;{"FirstName": "Frank",&lt;/P&gt;&lt;P&gt;"LastName": "Somebody"}&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;"ID":"2",&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ho can i group the data and create a clean nested json?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hint would be helpful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 09:37:16 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/convert-mysql-db-tabel-to-nested-json/m-p/5310#M2353</guid>
      <dc:creator>ccontzen</dc:creator>
      <dc:date>2023-10-05T09:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mysql DB Tabel to nested JSON</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/convert-mysql-db-tabel-to-nested-json/m-p/5519#M2428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/9137"&gt;@ccontzen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the data pill of the table output and use the formula .to_json to convert the value as a JSON output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="marlonmuela_0-1698669307746.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/797iF44313BCABEA08EB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="marlonmuela_0-1698669307746.png" alt="marlonmuela_0-1698669307746.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2023 12:35:14 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/convert-mysql-db-tabel-to-nested-json/m-p/5519#M2428</guid>
      <dc:creator>marlon-muela</dc:creator>
      <dc:date>2023-10-30T12:35:14Z</dc:date>
    </item>
  </channel>
</rss>

