Every time I wonder which one is json.load [s] Call it like sys.stdin () and get angry I'm angry without specifying encoding ='utf-8', so I'll write it down.
#!/usr/bin/python
import json, sys
pythoned_json = json.load(sys.stdin, encoding='utf-8')
Recommended Posts