add json exporting for program output