Handled exception when json not provided
Merge pull request #8 from Spearl/master

Handled exception when json not provided