Page 1 of 1

Operatoren (und, oder) in JSON -Struktur

Posted: 02 Apr 2025, 05:25
by Anonymous
Ich habe diese Art von JSON noch nie gesehen und bin mir nicht sicher, wie diese Struktur mit Code generiert werden kann. Kann jemand erklären, wie diese gültige JSON -Struktur ist und wie wir Protopuffer für diese Art von JSON -Struktur erzeugen können? < /P>

Code: Select all

{
"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"
}
]
}