3
내가 json
파이썬 JSON에 YAML 변환 : <block end>이
test.yaml 그러나
- fields: {name: "Test", nr: "000"}
model: testmodel
pk: "1"
에 다음과 같은 예를 yaml
파일을 변환하기 위해 노력하고있어 발견,
python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin),
sys.stdout, indent=4)' <test.yaml> test.json
를 호출
은 오류를 반환합니다.
"expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "<stdin>", line 1, column 3
expected <block end>, but found '<block mapping start>'
in "<stdin>", line 3, column 5
내 yaml 파일에 어떤 문제가 있습니까?