Skip to content

Instantly share code, notes, and snippets.

@nodefortytwo
Last active August 29, 2015 14:11
Show Gist options
  • Save nodefortytwo/25e7ac560ff2b900a128 to your computer and use it in GitHub Desktop.
Save nodefortytwo/25e7ac560ff2b900a128 to your computer and use it in GitHub Desktop.
[
{
"qid": "SQONE",
"type": "select-many",
"title": "Do you or any of your family or friends work in any of these occupations?",
"options": [
{
"text": "Marketing",
"value": 1
},
{
"text": "Public relations",
"value": 2
},
{
"text": "Market research",
"value": 3
},
{
"text": "Manufacturer, retailer, or distributor of food and beverage products",
"value": 4
},
{
"text": "Advertising ",
"value": 5
},
{
"text": "Journalism ",
"value": 6
},
{
"text": "New product development",
"value": 7
},
{
"text": "For the head offices of any supermarket, mass merchandiser or drug store",
"value": 8
},
{
"text": "Banking",
"value": 9
},
{
"text": "Insurance",
"value": 10
},
{
"text": "Local government",
"value": 11
},
{
"text": "None of These",
"value": 12
}
],
"rules": [
{
"action": [
"CLOSE"
],
"criteria": [
[
"SQONE",
"<",
9
]
]
},
{
"action": [
"SQTWO"
],
"criteria": [
[
"SQONE",
">",
8
]
]
}
]
},
{
"qid": "SQTWO",
"type": "select-many",
"title": "Please select the statement below that best describes your role in the decisions about food brands or products purchased for your household.",
"options": [
{
"text": "I make most or all of the decisions regarding food brands or products for my household",
"value": 1
},
{
"text": "I make about half of the decisions regarding food brands or products for my household",
"value": 2
},
{
"text": "I make less than half of the decisions regarding food brands or products for my household",
"value": 3
},
{
"text": "I make none of the decisions regarding food brands or products for my household",
"value": 4
}
],
"rules": [
{
"action": [
"SQCATEGORY"
],
"criteria": [
[
"SQTWO",
"<",
3
]
]
},
{
"action": [
"CLOSE"
],
"criteria": [
[
"SQTWO",
">",
2
]
]
}
]
},
{
"qid": "SQCATEGORY",
"type": "select-grid-random",
"title": "Which of the following products have you eaten in the past 12 months?",
"options": {
"headers": [
{
"text": "Daily",
"value": 5
},
{
"text": "Weekly",
"value": 4
},
{
"text": "Monthly",
"value": 3
},
{
"text": "A few times a year",
"value": 2
},
{
"text": "Never",
"value": 1
}
],
"rows": [
{
"text": "Frozen Dinner Entrees / Pizza",
"value": 1
},
{
"text": "Yogurt",
"value": 2
},
{
"text": "Cold cereals or granola",
"value": 3
},
{
"text": "Hot cereals",
"value": 4
},
{
"text": "Granola bars, cereal bars or nutrition or energy bars",
"value": 5
},
{
"text": "Crackers",
"value": 6
},
{
"text": "Cookies",
"value": 7
},
{
"text": "Waffles / hot breakfast sandwiches",
"value": 8
},
{
"text": "Soda",
"value": 9
},
{
"text": "Fruit snacks",
"value": 10
}
]
},
"rules": [
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"3_5, 3_4, 3_3, 3_2"
],
[
"PG.COUNTRY",
"=",
"CA"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"5_5, 5_4, 5_3, 5_2"
],
[
"PG.COUNTRY",
"=",
"CA"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"6_5, 6_4, 6_3, 6_2"
],
[
"PG.COUNTRY",
"=",
"CA"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"7_5, 7_4, 7_3, 7_2"
],
[
"PG.COUNTRY",
"=",
"US"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"1_5, 1_4, 1_3, 1_2"
],
[
"PG.COUNTRY",
"=",
"US"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"3_5, 3_4, 3_3, 3_2"
],
[
"PG.COUNTRY",
"=",
"US"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"5_5, 5_4, 5_3, 5_2"
],
[
"PG.COUNTRY",
"=",
"US"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"6_5, 6_4, 6_3, 6_2"
],
[
"PG.COUNTRY",
"=",
"US"
]
]
},
{
"action": [
"NEXT"
],
"criteria": [
[
"SQCATEGORY",
"IN",
"7_5, 7_4, 7_3, 7_2"
],
[
"PG.COUNTRY",
"=",
"US"
]
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment