Study specification export schemas.
Look up the fields in the Export JSON and Export DDL files.
On this page
Export JSON and its portable study definition
My Studies → study menu → Export JSON produces a UTF-8 _Export.json file. This is the portable protocol definition used by the website’s Import JSON feature. The fields below describe the website download format.
studyInfo- Object.
studyidis the numeric study ID,studyNameAliasis its display name, andattributesmaps setting names to stored string values. questions- Array of question definitions. Each object has
questionid,alias,questiontext,questionDesc,questionType,questionExtras,nextchoiceid, and nestedchoicesandrulesarrays.questionExtrasis a map of format-specific options. consentForms- Array of consent sections with
consentId,headingName,longFormData, andshortFormData. contactInfo- Array of study contacts with
contactInfoId,name,email,address, andphoneNumber. sensors- Array of configured sensors with
sensorname,sensorParam(settings stored as a string), andsensorHeartBeatInterval. researchers- Array of researcher account entries. The portable model carries
username,email,superOrNot,leaderOrNot,entitlementsInfo, and credential fieldspasswordandsalt. importedResearcherResult- Array or null. Researcher import outcomes with
name,originalStatus,addedAs, andalreadyExisted. A fresh export can leave this array null.
A nested choice carries questionid, choiceid, and choicetext. A nested rule carries ruleid, questionid, ruletype, ruletext, groupids, maxanswertime, and ruleRegistrationPlatform. The rule model also includes ruleDisabledTime, rulePublishedTime, ruleDescription, and platform. ruletext is stored as a string containing the trigger and filter configuration.
Keep this snapshot with the matching data export when a study changes over time. Use the CSV exports for participant observations.
Export DDL and its table definitions
My Studies → study menu → Export DDL produces a UTF-8 _DDL.json file for the website’s Import DDL feature. It is a JSON container for SQL table definitions and selected configuration rows.
studyDetails- Object.
studyIdis the numeric study ID andstudyNameAliasis the display name. serverDbVersion- Text. Database schema version used to generate the export.
tables- Object keyed by table name. Each entry has
createDDL, a string containing its SQL CREATE TABLE statement, andinsertDDL, an array of SQL INSERT strings or null. researchers- Array of researcher account entries. The DDL download model includes
id,username,email,superOrNot,entitlementsInfo, andpassword.
The exporter generates table definitions for the study tables. It generates INSERT statements only for the configuration tables choices, contactinfo, questions, rules, services, studyattributes, studyconsentform, and sensorsconfig. Use Download Data to retain response, consent and sensor records.
Both specification formats can carry researcher account data, including stored password hashes. Keep them in approved storage and share a field list or an empty template when discussing the structure.