switched output to json