A slightly more reliable isJson check

fixes: https://github.com/firebase/flashlight/issues/20
Merge pull request #21 from grenade/patch-1

A slightly more reliable isJson check