Skip to content

Instantly share code, notes, and snippets.

@danriti
Created November 8, 2013 17:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danriti/7374397 to your computer and use it in GitHub Desktop.
Save danriti/7374397 to your computer and use it in GitHub Desktop.
Quick JSON Stub in Python
# Useful way to stub an endpoint with JSON contained in a file.
import json
f = open('/path/to/file.json', 'r')
return json.load(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment