I have a JSON string which is actually an array
|{"[0].id":"cccccccc","[0].label":"xxxxxx","[0].deviceTypeId":"xxxxxxxxxxxx"}|
I need to explode this so that I can have all keys as columns, something like this
dataFrame.
.withColumn("single", explode_outer(col("nested")))
However, spark keeps complaining that explode should be map an array.
How do I do this?
nestedcolumn? and the expected output?