Yaml yaml = new Yaml(); String test=""; Object param = yaml.load(test); Map<String,Object> param = JSONObject.parseObject(JSON.toJSONString(yamlData));