takes result file from parser and make json input to R