Data format
The JSON format is used to communicate with the Interview Web Service. The following JSON example is returned by the Interview Web Service for the single response Gender question with the Next and Stop navigation controls.
{
"Page": {
"URL": "/SPSSMR/Interviewing/api/interviews/engine1/ABCD/routing/questions/QA",
"Version": "1:2",
"Project": "ABCD",
"Language": "en-US",
"Context": "Question",
"LabelType": "Label",
"RoutingContext": "NEWROUTING",
"LayoutTemplate": "DefaultLayout.htm",
"EstimatedPages": "2",
"Renderer": "HTMLPlayer",
"Locale": "1033",
"Properties": { },
"Title": {
"Text": "Gender"
},
"Question": {
"QuestionName": "Gender",
"QuestionFullName": "Gender",
"QuestionDataType": "Categorical",
"Label": {
"Text": "What is your gender?"
},
"Category": [
{
"Name": "Male",
"Label": {
"Text": "Male"
}
},
{
"Name": "Female",
"Label": {
"Text": "Female"
}
}
],
"Validation": {
"MinValue": "1",
"MaxValue": "1"
},
"Response": {
"Value": { }
}
},
"Navigation": [
{
"Type": "Next",
"IsDefault": "true",
"Label": {
"Text": "Next"
}
},
{
"Type": "Stop",
"Label": {
"Text": "Stop"
}
}
]
}
See also