I have never seen this kind of JSON before and I am not sure how this structure can be generated using code.In below Json structure offerings cantains an array of objects as well as an object with OR operator. Can somebody explain how is this valid JSON structure and how can we generate proto buffer for this kind of JSON structure?
{
"id": 147,
"display_text": "Entertainment available",
"quality": "better",
"cost": "free or paid",
"exists": "yes",
"type": "streaming",
"updated_at": "2019-01-30T09:13:30Z",
"offerings": [
[
{
"delivery_medium": "in-seat",
"content_type": "livetv",
"selection_type": "live"
},
"and",
{
"delivery_medium": "in-seat",
"content_type": "movies",
"selection_type": "loop"
}
],
"or",
{
"delivery_medium": "streaming",
"content_type": "avod",
"selection_type": "on-demand"
}
]
}