Fixed reading json

Now it will work with json files not only with Sinon fake server