fix generating of json
Merge pull request #10 from pydanny/fix-generate-json

fix generating of json to target the correct file