Fixed json_object_object checks.