Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
icebraining
on May 6, 2014
|
parent
|
context
|
favorite
| on:
Fat JSON
Yeah. I just don't like putting syntax in a string; I'd rather use Python itself.
By the way, you should remove the pprint import from the library, since you don't use it :)
ig1
on May 7, 2014
[–]
I considered that approach but found the JSON returned by some third-party apis contained characters in keys (dashes, spaces, etc) which have special meanings in python so can't be used natively.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
By the way, you should remove the pprint import from the library, since you don't use it :)