Created
March 26, 2015 17:37
-
-
Save bmcbride/a07753366bfd322f0909 to your computer and use it in GitHub Desktop.
Example classification_set JSON for an API request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"classification_set": { | |
"name": "Agricultural Products", | |
"description": "A list of common agricultural products", | |
"items": [ | |
{ | |
"label": "cereals", | |
"value": "cereals", | |
"child_classifications": [ | |
{ | |
"label": "wheat", | |
"value": "wheat" | |
}, | |
{ | |
"label": "corn", | |
"value": "corn" | |
}, | |
{ | |
"label": "rice", | |
"value": "rice" | |
}, | |
{ | |
"label": "barley", | |
"value": "barley" | |
}, | |
{ | |
"label": "maize", | |
"value": "maize" | |
} | |
] | |
}, | |
{ | |
"label": "fruit", | |
"value": "fruit", | |
"child_classifications": [ | |
{ | |
"label": "grapes", | |
"value": "grapes" | |
}, | |
{ | |
"label": "apricot", | |
"value": "apricot" | |
}, | |
{ | |
"label": "pomegranate ", | |
"value": "pomegranate " | |
}, | |
{ | |
"label": "apple", | |
"value": "apple" | |
}, | |
{ | |
"label": "mulberry", | |
"value": "mulberry" | |
} | |
] | |
}, | |
{ | |
"label": "nuts", | |
"value": "nuts", | |
"child_classifications": [ | |
{ | |
"label": "almond", | |
"value": "almond" | |
}, | |
{ | |
"label": "pistachio", | |
"value": "pistachio" | |
}, | |
{ | |
"label": "walnut", | |
"value": "walnut" | |
} | |
] | |
}, | |
{ | |
"label": "vegetables", | |
"value": "vegetables", | |
"child_classifications": [ | |
{ | |
"label": "melon", | |
"value": "melon" | |
}, | |
{ | |
"label": "watermelon", | |
"value": "watermelon" | |
}, | |
{ | |
"label": "onion", | |
"value": "onion" | |
}, | |
{ | |
"label": "potato", | |
"value": "potato" | |
}, | |
{ | |
"label": "tomato", | |
"value": "tomato" | |
} | |
] | |
}, | |
{ | |
"label": "spices/herbs", | |
"value": "spices/herbs", | |
"child_classifications": [ | |
{ | |
"label": "cumin", | |
"value": "cumin" | |
}, | |
{ | |
"label": "saffron", | |
"value": "saffron" | |
}, | |
{ | |
"label": "ginger", | |
"value": "ginger" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment