A slightly more reliable isJson check

fixes: https://github.com/firebase/flashlight/issues/20