Type check JSON objects