from yaml to json for config