from __future__ import annotations


class JsonFormatValidator:
    def is_json_like(self, text: str) -> bool:
        if not text or not text.strip():
            return False
        stripped = text.strip()
        return (stripped.startswith("{") and stripped.endswith("}")) or (
            stripped.startswith("[") and stripped.endswith("]")
        )
