Fix json by opening files not in binary mode.
Merge pull request #1 from erebos42/staging

Fix json by opening files not in binary mode.