Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.