Fix json type detection
Merge branch 'hotfix/v0.2.1'