Created
November 8, 2013 17:17
-
-
Save danriti/7374397 to your computer and use it in GitHub Desktop.
Quick JSON Stub in Python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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