Hi @Suman Mishraโ, This article explains how to convert a flattened DataFrame to a nested structure by nesting a case class within another case class.
You can use this technique to build a JSON file that can then be sent to an external API.
Welcome to Databricks Community: Lets learn, network and celebrate together
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.