schema.org LD+JSON decision tree example #1
by Krzysztof Tomasz Zembrowski
HTML
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Question",
"text": "First question",
"choice": {
"@type": "Choice",
"text": "Yes",
"result": {
"@type": "Answer",
"text": "Answer 1"
}
},
"choice": {
"@type": "Choice",
"text": "No",
"result": {
"@type": "Question",
"text": "Second question"
"choice": {
"@type": "Choice",
"text": "Yes",
"result": {
"@type": "Answer",
"text": "Answer 2"
}
},
"choice": {
"@type": "Choice",
"text": "No",
"result": {
"@type": "Answer",
"text": "Answer 3"
}
}
}
}
}
</script>