Skip to content

Instantly share code, notes, and snippets.

@ycui1
Created March 29, 2022 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ycui1/3e81b2d10b2f01622642ad16fd2c934b to your computer and use it in GitHub Desktop.
Save ycui1/3e81b2d10b2f01622642ad16fd2c934b to your computer and use it in GitHub Desktop.
employee_info = {"name": "John", "age": 35, "city": "San Francisco", "home": "123 Main St.", "zip_code": 12345, "sex": "Male"}
print(json.dumps(employee_info, indent=2, sort_keys=True))
# output:
{
"age": 35,
"city": "San Francisco",
"home": "123 Main St.",
"name": "John",
"sex": "Male",
"zip_code": 12345
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment