extracted json parsing to a private method
Merge pull request #27 from knnyluk/refactor_jsonparcer

extracted json parsing to a private method