Skip to content

Instantly share code, notes, and snippets.

@nevercodealone
Created January 28, 2022 15:28
Show Gist options
  • Save nevercodealone/16b39d3749e4d61658a8c793da278518 to your computer and use it in GitHub Desktop.
Save nevercodealone/16b39d3749e4d61658a8c793da278518 to your computer and use it in GitHub Desktop.
Well formatted output for locust text response in python
import json
....
parsed = json.loads(response.text)
print(json.dumps(parsed, indent=4, sort_keys=True))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment