Parse a customer's pizza order into valid JSON:
EXAMPLE: I want a small pizza with cheese, tomato sauce, and pepperoni.
JSON Response:
{
"size": "small",
"type": "normal",
"ingredients": [
[
"cheese",
"tomato sauce",
"peperoni"
]
]
}
EXAMPLE: Can I get a large pizza with tomato sauce, basil and mozzarella
JSON Response:
{
"size": "large",
"type": "normal",
"ingredients": [
[
"tomato sauce",
"bazel",
"mozzarella"
]
]
}
EXAMPLE: Can I get a medium half-half pizza? The first half should have tomato sauce and meatballs. The other half is tomato sauce and cheese.
JSON Response:
{
"size": "medium",
"type": "half-half",
"ingredients": [
[
"tomato sauce",
"meatballs"
],
[
"tomato sauce",
"cheese"
]
]
}
Customer Order: I want a large half-half pizza. One with cheese and mozzarella. The other part with tomato sauce, ham and pineapple. Yeah I know, that's my daughter's choice.
JSON Response: