Skip to content

Instantly share code, notes, and snippets.

@KalpeshTalkar
Last active April 15, 2023 18:57
Show Gist options
  • Save KalpeshTalkar/b017b18529e5c81452d39d9da1890210 to your computer and use it in GitHub Desktop.
Save KalpeshTalkar/b017b18529e5c81452d39d9da1890210 to your computer and use it in GitHub Desktop.
sample json file
{
"participantId": "all-widgets-test",
"surveyId": "63c911d8e5b4ba0018c6ce35",
"downloadTimestamp": "2023-03-26T15:39:26.397Z",
"mobileModelName": "Google sdk_gphone64_x86_64",
"mobileOperatingSystemVersion": "33",
"created": "2023-01-19T09:48:08.043Z",
"id": "63c911d8e5b4ba0018c6ce3f",
"status": "",
"survey": {
"title": "All Widgets Test",
"createdAt": "2022-06-28T09:27:04.446Z",
"updatedAt": "2023-01-19T09:48:07.851Z",
"createdBy": "Success Researcher",
"startTimestamp": "2022-06-26T23:00:00.000Z",
"expirationTimestamp": "2023-05-30T23:00:00.000Z",
"privacy": "Please type your consent",
"dayStartTime": "00:00",
"dayEndTime": "00:00",
"maxDelayInMins": 15,
"isMotionReadjustEnabled": false,
"isShakeEventEnabled": false,
"isUnlockEnabled": false,
"unlockReadAdjustTimeInMins": 0,
"isSmartContextTriggerEnabled": false,
"isLearningEnabled": false,
"type": "close",
"isGeolocationEnabled": false,
"isTrending": false,
"isAnalyticsEnabled": false,
"version": 21,
"isFitbitSyncRequired": false,
"snoozeTimeInMins": 15,
"isAccessControlRequired": false,
"isStudyProtected": false,
"studyPassword": "",
"isTestingMode": true,
"isNewDayRequired": false,
"isSetImmediately": true,
"isPasswordRequired": false,
"id": "63c911d8e5b4ba0018c6ce35",
"researcherId": "5d8d01dd676109a501afd492",
"projectID": 1656408424809746,
"iowaConfigs": [],
"selfInitiatedProbes": [],
"externalInteractionBasedNotifications": [],
"timeBasedNotifications": [
{
"index": 0,
"title": "All Widgets Test",
"startTime": "2022-06-26T23:00:00.000Z",
"endTime": "2023-05-30T23:00:00.000Z",
"timeGapInMins": 10,
"maxNumberOfProbes": 5,
"responseTimeLimitInMins": 10,
"initialiseNotifications": true,
"isInitialised": true,
"isRelativeTiming": true,
"id": "63c911d8e5b4ba0018c6ce36",
"surveyId": "63c911d8e5b4ba0018c6ce35",
"labelColor": "#679bc4",
"type": "timeBased",
"isQPROSurvey": false,
"isFitbitSyncRequired": false,
"timeBasedValidation": [
{
"type": "timeGapInMins",
"value": false
},
{
"type": "responseTimeLimitInMins",
"value": false
},
{
"type": "maxNumberOfProbes",
"value": false
}
],
"validation": [
{
"type": "startDate",
"value": false
},
{
"type": "endDate",
"value": false
},
{
"type": "title",
"value": true
}
],
"timeBasedSurveyQuestions": [
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "Question",
"type": "verbalResponseScale",
"minSelection": 1,
"maxSelection": 1,
"options": [],
"isConditional": true,
"conditionalOptions": [
{
"nextQuestionIndex": 1,
"option": "2"
},
{
"nextQuestionIndex": -1,
"option": "End"
}
],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce37",
"index": 0,
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": false
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "0-5 -3, 5.1-10 - end\n",
"type": "visualAnalogScale",
"minValue": 0,
"maxValue": 10,
"options": [],
"isConditional": true,
"conditionalOptions": [
{
"nextQuestionIndex": 2,
"min": "0",
"max": "4.9"
},
{
"nextQuestionIndex": -1,
"min": "5",
"max": "10"
}
],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce38",
"index": 1,
"rightLabel": "10",
"leftLabel": "0",
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": true
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "0-1.9 - 4, 2-3\n\nRailways Minister Ashwini Vaishnaw on Wednesday took to Twitter to share pictures of a snow-covered railway station and tweeted, \"Guess this station! Hint: Heaven on Earth.\" His tweet received responses like, \"Igatpuri\", \"Banihal Railway Station\", and \"Qazigund railway station at Jammu and Kashmir.\" A Twitter user also said, \"Switzerland in India.\"\nRailways Minister Ashwini Vaishnaw on Wednesday took to Twitter to share pictures of a snow-covered railway station and tweeted, \"Guess this station! Hint: Heaven on Earth.\" His tweet received responses like, \"Igatpuri\", \"Banihal Railway Station\", and \"Qazigund railway station at Jammu and Kashmir.\" A Twitter user also said, \"Switzerland in India.\"\nRailways Minister Ashwini Vaishnaw on Wednesday took to Twitter to share pictures of a snow-covered railway station and tweeted, \"Guess this station! Hint: Heaven on Earth.\" His tweet received responses like, \"Igatpuri\", \"Banihal Railway Station\", and \"Qazigund railway station at Jammu and Kashmir.\" A Twitter user also said, \"Switzerland in India.\"",
"type": "numericalResponseScale",
"minValue": 0,
"maxValue": 3,
"options": [],
"isConditional": true,
"conditionalOptions": [
{
"nextQuestionIndex": 3,
"min": "0",
"max": "1.9"
},
{
"nextQuestionIndex": -1,
"min": "2",
"max": "3"
}
],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce39",
"index": 2,
"rightLabel": "3",
"leftLabel": "0",
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": true
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "0-49.9 - 5, 50-100 - end",
"type": "number",
"minValue": 0,
"maxValue": 100,
"options": [],
"isConditional": true,
"conditionalOptions": [
{
"nextQuestionIndex": 4,
"min": "0",
"max": "49.9"
},
{
"nextQuestionIndex": 4,
"min": "50",
"max": "100"
}
],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce3a",
"index": 3,
"numberOfDecimals": 0,
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": true
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "0-49 - 6, 50-100 - end",
"type": "number",
"minValue": 0,
"maxValue": 1000,
"options": [],
"isConditional": true,
"conditionalOptions": [
{
"nextQuestionIndex": 5,
"min": "0",
"max": "49"
},
{
"nextQuestionIndex": -1,
"min": "50",
"max": "100"
}
],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce3b",
"index": 4,
"numberOfDecimals": 1,
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": false
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "Date question",
"type": "datetime",
"options": [],
"isConditional": false,
"conditionalOptions": [],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce3c",
"index": 5,
"placeholder": "Please provide your date/time",
"configuration": 0,
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": false
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "7",
"type": "textbox",
"options": [],
"isConditional": false,
"conditionalOptions": [],
"isGraphEnabled": false,
"isSkippable": false,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce3d",
"index": 6,
"placeholder": "Please provide your input",
"limitNoOfCharacters": false,
"maxNoOfCharacters": 500,
"validation": [
{
"type": "title",
"value": true
},
{
"type": "answer",
"value": false
}
]
},
{
"timeBasedNotificationId": "63c911d8e5b4ba0018c6ce36",
"question": "",
"type": "instructional",
"isGraphEnabled": false,
"title": "",
"description": "<p>Question</p>",
"isSkippable": true,
"isNumberVisible": false,
"id": "63c911d8e5b4ba0018c6ce3e",
"index": 7
}
]
}
]
}
}
[
{
"id": "asd-123",
"questions": [
{
"id": "q1",
"text": "Choose any one option from the given options",
"type": "vrs",
"options": [
"Answer 1",
"Answer 2",
"Answer 3",
"This is another option available for selection"
],
"multiSelect": false
},
{
"id": "q2",
"text": "How happy you are feeling?",
"type": "vas",
"minValue": 0,
"maxValue": 4,
"leftLabel": "Sad",
"rightLabel": "Very Happy"
},
{
"id": "q3",
"text": "This is a question to test the VRS widget.\nVRS stands for Verbal Response Scale\nChoose any 2 options from the given options",
"type": "vrs",
"options": [
"Answer 1",
"Answer 2",
"Answer 3",
"Answer 4",
"This is another option available for selection",
"You can select this also",
"Or this also"
],
"multiSelect": true,
"maxSelection": 2
},
{
"id": "q4",
"text": "How good you think Flutter is?",
"type": "vas",
"minValue": 0,
"maxValue": 10,
"valueIsVisible": true,
"leftLabel": "Min",
"rightLabel": "Max"
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment