Skip to content

Instantly share code, notes, and snippets.

@psaia
Created December 16, 2011 20:35
Show Gist options
  • Save psaia/1487853 to your computer and use it in GitHub Desktop.
Save psaia/1487853 to your computer and use it in GitHub Desktop.
Sample result
[
{
"cat_id":12,
"name":"Dinner",
"order":0,
"items":{
"0":{
"name":"Grilled \"Pete Killin\" Cheese",
"description":"It's so freaking tasty.",
"price":3,
"options":[
]
},
"1":{
"name":"Pho #3",
"description":"It's hot, it's Vietnamese.",
"price":12,
"options":[
{
"type":"multiselect",
"required":false,
"label":"Would you like any of this?",
"values":[
"Siracha",
"Lime",
"Sprouts",
"Mint"
]
},
{
"type":"singleselect",
"required":true,
"label":"How would you like it prepped?",
"values":[
"Hot & Raw",
"Cold & Cooked",
"Still kickin'"
]
}
]
},
"3":{
"name":"The Pete Salad",
"description":"Lots of veges.",
"price":4,
"options":[
{
"type":"multiselect",
"required":true,
"label":"Would else would you like on it?",
"values":[
"Tomatoes",
"Cucumbers",
"Carrots",
"Squash"
]
},
{
"type":"singleselect",
"required":true,
"label":"Would you like fruit?",
"values":[
"Yes",
"No"
]
}
]
}
}
},
{
"cat_id":12,
"name":"Breakfast",
"order":0,
"items":[
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment