Skip to content

fix(doc): improve readability of example dictionaries#3

Open
jmartens wants to merge 1 commit intotbezo:mainfrom
jmartens:patch-1
Open

fix(doc): improve readability of example dictionaries#3
jmartens wants to merge 1 commit intotbezo:mainfrom
jmartens:patch-1

Conversation

@jmartens
Copy link

Improve readability of dictionaries by formatting them using:

import json
print(json.dumps({'key':{'subkey': 'value'}}, indent=4))

which yields:

{
    "key": {
        "subkey": "value"
    }
}

Improve readability of dictionaries by formatting them using:

```python
import json
print(json.dumps({'key':{'subkey': 'value'}}, indent=4))
```

which yields:
```python
{
    "key": {
        "subkey": "value"
    }
}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant