Changed output to json, use that to chart