how to check whether json dyonamic bject is empty or not code example Example: how to check if a json object is empty obj.length() == 0 is what I would do.