Issue#6: create parent directory of JSON file
Merge pull request #9 from ecki/topic-jsonfilefix

Issue #6: create parent directory of JSON file