<?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 Re: how to create a nested(unflatten) json from flatten json in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31357#M22817</link>
    <description>&lt;P&gt;Your question is a little unclear. But see the lower section of this article, it might help...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://towardsdatascience.com/json-in-databricks-and-pyspark-26437352f0e9" target="test_blank"&gt;https://towardsdatascience.com/json-in-databricks-and-pyspark-26437352f0e9&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 13:41:10 GMT</pubDate>
    <dc:creator>cconnell</dc:creator>
    <dc:date>2022-01-19T13:41:10Z</dc:date>
    <item>
      <title>how to create a nested(unflatten) json from flatten json</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31356#M22816</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function in pyspark which can convert flatten json to nested json.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex : if we have attribute in flatten is like a_b_c : 23&lt;/P&gt;&lt;P&gt;then in unflatten it should be&lt;/P&gt;&lt;P&gt;{"a":{"b":{"c":23}}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:29:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31356#M22816</guid>
      <dc:creator>SailajaB</dc:creator>
      <dc:date>2022-01-19T13:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a nested(unflatten) json from flatten json</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31357#M22817</link>
      <description>&lt;P&gt;Your question is a little unclear. But see the lower section of this article, it might help...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://towardsdatascience.com/json-in-databricks-and-pyspark-26437352f0e9" target="test_blank"&gt;https://towardsdatascience.com/json-in-databricks-and-pyspark-26437352f0e9&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:41:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31357#M22817</guid>
      <dc:creator>cconnell</dc:creator>
      <dc:date>2022-01-19T13:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a nested(unflatten) json from flatten json</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31358#M22818</link>
      <description>&lt;P&gt;As @Chuck Connell​&amp;nbsp;said can you share more of your source json as that example is not json. Additionally flatten is usually to change something like {"status": {"A": 1,"B": 2}} to {"status.A": 1,  "status.B": 2} which can be done easily with spark dataframes&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 10:44:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31358#M22818</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-01-20T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a nested(unflatten) json from flatten json</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31359#M22819</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are looking for unflattening the flatten json.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If my json contains attributes like {"status_A":2,"status_B":3,"status_C_D":5} then we should unflatten the i/p flatten json  one as below&lt;/P&gt;&lt;P&gt;{"status":{{"A":2,"B":3},{"C":{"D":5}}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the question is clear now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 10:54:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31359#M22819</guid>
      <dc:creator>SailajaB</dc:creator>
      <dc:date>2022-01-20T10:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a nested(unflatten) json from flatten json</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31360#M22820</link>
      <description>&lt;P&gt;Hi @Sailaja B​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to share the following example notebook &lt;A href="https://docs.databricks.com/_static/notebooks/transform-complex-data-types-scala.html" target="test_blank"&gt;https://docs.databricks.com/_static/notebooks/transform-complex-data-types-scala.html&lt;/A&gt; it might be able to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;--Jose&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 00:50:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-create-a-nested-unflatten-json-from-flatten-json/m-p/31360#M22820</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-02-09T00:50:27Z</dc:date>
    </item>
  </channel>
</rss>

