4-2. JSON

To use JSON files as data, select JSON in the Data Type drop-down menu.

JSON file format stands for 'JavaScript Object Notation.' The research portal requires JSON files to be formatted as shown in this example, using the data from the CSV example on the previous page: 

{"data":[
 {
   "CHR": 1,
   "POS": 721290,
   "REF": "G",
   "ALT": "C",
   "RSID": "rs12565286",
   "PVAL": 0.038345
 },
 {
   "CHR": 1,
   "POS": 976963,
   "REF": "A",
   "ALT": "G",
   "RSID": "rs150359724",
   "PVAL": 0.0043785
 },
 {
   "CHR": 1,
   "POS": 1120431,
   "REF": "G",
   "ALT": "A",
   "RSID": "rs1320571",
   "PVAL": 0.023373
 }
]
}

You can see that each set of data is wrapped in an array([]) labeled with "data" in an object({}). The research portal can take JSON data without any configuration and build data table out of it. 

This online tool converts CSV data in to JSON format: http://www.convertcsv.com/csv-to-json.htm. Please don't forget to wrap the converted data with curly brackets and label it "data" before uploading to the research portal.