If you don't care about primitives and only objects then this function is for you, otherwise look elsewhere. This function will return false for any valid json primitive. EG, 'true' -> false '123' -> false 'null' -> false '"I'm a string"' -> false