switching output format from yaml to json