Skip to content

Instantly share code, notes, and snippets.

@eingenito
Last active January 31, 2018 22:35
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 eingenito/3e9ac67f1ff8c0730d6de79de03d5d98 to your computer and use it in GitHub Desktop.
Save eingenito/3e9ac67f1ff8c0730d6de79de03d5d98 to your computer and use it in GitHub Desktop.
{
  "client" {
    "id": 1234,
    "surveys": [
      { 
        "id": 1234, 
        "completed_at": "20180101T12:00:00.000Z-0600", 
        "updated_at": "20180101T12:00:00.000Z-0600" 
      } 
    ],
    "responses": [
      {
        "concept": "spendiness_tops", // this is the "canonical" concept
        "answered_at": "20180101T12:00:00.000Z-0600",
        "context": {
          "question": {
            "name": "spendiness_tops", // this is the unique json_param_name
            "metadata": { // this is arbitrary data on the question - we want to be able to ignore it
              "category": "tops", 
              "set": "spendiness_2014" 
            }
          },
          "in_survey": 1234 // or whatever
        },
        "values": [
          "less_than_50" // this is client_answers.responses
        ]
      }, ...
    ]
  }
}  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment