Permalink
Browse files

better example of questionnaire.json

  • Loading branch information...
1 parent c4d4941 commit f37705927775287443798dc9f1d63a3ccb23c7b4 @coolaj86 committed Oct 19, 2012
Showing with 25 additions and 9 deletions.
  1. +25 −9 README.md
View
@@ -25,19 +25,35 @@ it can be used for any type of test. Simply specify the name of the questionaire
Test Format
---
-`questionaire.json` must follow the example file:
+The format of `questionnaire.json` is rather straight-forward.
+
+For example, let's say you wanted your own version of the Hogwarts Sorting Hat House Quiz, you would create a file like this:
{
- "categories": ["a", "b", "c", "d"]
+ "title": "Hogwarts Sorting Hat House Quiz"
+ , "defaultQuestion": "Which is more true of you?"
+ , "categories": [
+ "Gryffindor"
+ , "Hufflepuff"
+ , "Ravenclaw"
+ , "Slytherin"
+ ]
, "questions": [
[
- "Which is LEAST true of you?"
- , "I'm pretty"
- , "I'm smart"
- , "I'm eat leaves"
- , "I'm like pudding"
+ null
+ , "values bravery, daring, nerve, and chivalry"
+ , "values hard work, patience, loyalty, and fair play rather than a particular aptitude"
+ , "values intelligence, knowledge, and wit"
+ , "values ambition, cunning and resourcefulness"
+ ]
+ , [
+ "Which house do you feel in your heart you belong to?"
+ , "Gryffindor"
+ , "Hufflepuff"
+ , "Ravenclaw"
+ , "Slytherin"
]
]
- , "defaultQuestion": "Which is more true of you?"
- , "title": "The XYZ Test"
}
+
+http://www.thealmightyguru.com/Reviews/HarryPotter/Docs/Quiz-House.html

0 comments on commit f377059

Please sign in to comment.