How to dynamically convert Spark DataFrame to Nested json using Spark Scala
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022 06:33 AM
I want to convert the DataFrame to nested json. Sourse Data:-
DataFrame have data value like :- As image 2
Expected Output:-
I have to convert DataFrame value to Nested Json like : -As image 1
Appreciate your help !
Labels:
0 REPLIES 0