Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 294 Bytes

formats.md

File metadata and controls

19 lines (15 loc) · 294 Bytes

xml yaml json toml formats

import yaml
import json
import dicttoxml
import toml
import xml
values=toml.load(path_to_file)
values=json.load(path_to_file)

yaml.safe_dump(values)
dicttoxml.dicttoxml(values)
json.safe_dumps(json.loads(json_dumps(json_string_value))