We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sort_keys
1 parent 477e0e8 commit a37dd41Copy full SHA for a37dd41
examples/fodo.py
@@ -52,7 +52,7 @@ def main():
52
]
53
)
54
# Serialize to YAML
55
- yaml_data = yaml.dump(line.model_dump(), default_flow_style=False, sort_keys=False)
+ yaml_data = yaml.dump(line.model_dump(), default_flow_style=False)
56
print("Dumping YAML data...")
57
print(f"{yaml_data}")
58
# Write YAML data to file
@@ -67,7 +67,7 @@ def main():
67
# Validate loaded data
68
assert line == loaded_line
69
# Serialize to JSON
70
- json_data = json.dumps(line.model_dump(), indent=2, sort_keys=False)
+ json_data = json.dumps(line.model_dump(), indent=2)
71
print("Dumping JSON data...")
72
print(f"{json_data}")
73
# Write JSON data to file
0 commit comments