I am trying to create schema to parse json into spark dataframe
I have column value in json which could be either struct or string
"value": {
"entity-type": "item",
"id": "someid",
"numeric-id": 30
}
"value": "SomePicture.jpg",
How can i specify that in the schema
https://json-schema.org/understanding-json-schema/index.html