Conceptual
Login

Why Arbitrarily Nested JSON Needs a Context-Free Grammar Not a Regex

Matching brackets to unbounded depth requires counting, which no finite automaton can do; formats with recursive nesting such as JSON, SQL and code are context-free and need a grammar plus a stack.