Hi,

I'm new to Spark and Scala, need help on transforming Nested JSON using Scala. 
We have upstream returning JSON like

{
 "id": 100,
 "text": "Hello, world."
Users : [ "User1": {
          "name": "Brett",
          "id": 200,
          "Type" : "Employee"
          "empid":"2"
        },
 "User2": {
         "name": 10.5,
         "id": 20.7,
         "empid":"1"
          "Type" : "Employee"
   }
}
]


I would like to parse this JSON and put the data i tabular format like

ID     TEXT  Employee   EmpID
100   Hello   User1     2
100   Hello   User2     1



In above key User1 and User2 are dynamic in nature, it can have any key like 
User100.. etc. Is there any simple way of parsing this kind of JSON and any 
builtin helper class ?



Thanks in advance




Reply via email to