changed the output format to json string