fix empty json

Had to change these lines to even get an output from a raw github file
Merge pull request #30 from Plancke/patch-2

fix empty json