Skip to content

Instantly share code, notes, and snippets.

@reyjrar
Created November 21, 2024 18:35
Show Gist options
  • Save reyjrar/e0f6455fa9293393dbfbd1e48a6f9811 to your computer and use it in GitHub Desktop.
Save reyjrar/e0f6455fa9293393dbfbd1e48a6f9811 to your computer and use it in GitHub Desktop.
Better JSON
brad@beta $ \cat t.yaml
{
# Set the country
"country": "NO",
}
brad@beta $ python3 -c 'import yaml ; y=open("t.yaml","r") ; x=yaml.safe_load(y) ; print(yaml.dump(x))'
country: 'NO'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment