feat: add json test

This commit is contained in:
2025-09-03 00:37:25 +08:00
parent 71ad0966bc
commit fd3f640925

11
json_test.py Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env python3
import json
if __name__ == "__main__":
x = '{"name": "hatter", "age": 18}'
y = json.loads(x)
z = json.dumps(y, indent=4, sort_keys=True)
print(x)
print(y)
print(z)