我有以下 JSON 文件:
{"Mensaplan": [{
"Montag": [
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": true, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false}
],
"Dienstag": [
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": true},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false}
],
"Mittwoch": [
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": true, "bio": false},
{"food": "Schnitzl", "price": "4.00 €", "vegetarian": false, "bio": true}
],
"Donnerstag": [
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false}
],
"Freitag": [
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false},
{"food": "Schnitzl", "price": "5.00 €", "vegetarian": false, "bio": false}
]
}]
}
我想遍历“Mensaplan”并获得每一天(“Montag”、“Dienstag”、[...](它是德语))。我试图用 jQuery 方法 $.each 来做到这一点,但我不知道如何为这些日子制定通配符,因为每个通配符都有不同的名称。
谁能帮我解决这个问题?
预先感谢!