Created
November 25, 2018 02:43
-
-
Save chamilad/6eec1ec99a45e6b5a24e443aca591bc2 to your computer and use it in GitHub Desktop.
Parse files containing JSON requests
This file contains 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
for api_request_file in glob.glob("api_definitions/*_apis.json"): | |
request_json_content = json.loads(open(api_request_file).read()) | |
requesting_user = request_json_content["username"] | |
print "Parsing create requests for [user] %s [department] %s [requests] %s..." % ( | |
requesting_user, request_json_content["department"], len(request_json_content["apis"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment