Updating code to be compatible with json file format produced with DAQ2