python print pretty json
import json
json_data = '[{"ID":10,"Name":"Pankaj","Role":"CEO"},' \
'{"ID":20,"Name":"David Lee","Role":"Editor"}]'
json_object = json.loads(json_data)
json_formatted_str = json.dumps(json_object, indent=2)
print(json_formatted_str)
python3 -m json.tool unformatted.json > formatted.json
Also in JavaScript:
- conditional rendering in react
- javascript currying stack overflow
- devolver nombre propiedades de objeto javascript
- how to check the length of a string in jquery
- jquery tag name
- loop through an object
- auto generate component angular
- remove required attribute jquery mvc
- find method javascript
- react return action in a function
- jquery delay
- javascript code for find the last element in array
- get height of div use js
- delete session javascript
- javascript scroll to top onclick
- expose deployment nodeport command
- vue axios catch error
- angular ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.
- angular 9 form value changes
- react button onclick
- show ... in 2nd line javascript
- how to see in how many servers your discord bot is d.js
- how to comments in json file
- javascript link to google maps route