Issue #113. Write to json file properly.
Merge pull request #115 from Samsung/Issue_113

Issue #113. Write to json file properly.