Question: Using the json file below titled donuts.json [ { id : 0 0 0 1 , type: donut, name: Cake, ppu:
Using the json file below titled "donuts.json"
id:
"type": "donut",
"name": "Cake",
"ppu":
"batters":
"batter":
id: "type": "Regular"
id: "type": "Chocolate"
id: "type": "Blueberry"
id: "type": "Devil's Food"
"topping":
id: "type": "None"
id: "type": "Glazed"
id: "type": "Sugar"
id: "type": "Powdered Sugar"
id: "type": "Chocolate with Sprinkles"
id: "type": "Chocolate"
id: "type": "Maple"
id:
"type": "donut",
"name": "Raised",
"ppu":
"batters":
"batter":
id: "type": "Regular"
"topping":
id: "type": "None"
id: "type": "Glazed"
id: "type": "Sugar"
id: "type": "Chocolate"
id: "type": "Maple"
id:
"type": "donut",
"name": "Old Fashioned",
"ppu":
"batters":
"batter":
id: "type": "Regular"
id: "type": "Chocolate"
"topping":
id: "type": "None"
id: "type": "Glazed"
id: "type": "Chocolate"
id: "type": "Maple"
Create an ordering system for donuts. The program must use vectors and map and importing of a json file.The goal is to learn how to filter and find data in a json file using C
sample output looks like this:
Choose a donut type:
: Cake
: Raised
: Old Fashioned
Choose a batter type:
: Regular
: Chocolate
: Blueberry
: Devil's Food
