convert some commands from yaml to json