Changed output to json