I have the following json:
{
"value":[
{"C1":"val1","C2":"val2"},
{"C1":"val1","C2":"val2"},
{"C1":"val1","C2":"val2"}
]
}
That i am trying to read like this:
spark.read
.option("multiLine", true).option("mode", "PERMISSIVE")
.json("/Projects.json")
.show(10)
But it is not able to show me my records properly in the data frame, how do I go around that "value" nesting to properly have my rows in the dataframe?
The result I am trying to get is:
C1 | C2
-------------------
VAL1 | VAL2
VAL1 | VAL2
...etc