I have the following JSON file:
{"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来实现这个目标,但我不知道如何为每个不同名称的日期制定通配符。
有人能帮我解决这个问题吗?
提前致谢!