Skip to content

Instantly share code, notes, and snippets.

@bmcbride
Created March 26, 2015 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmcbride/a07753366bfd322f0909 to your computer and use it in GitHub Desktop.
Save bmcbride/a07753366bfd322f0909 to your computer and use it in GitHub Desktop.
Example classification_set JSON for an API request
{
"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