Many DBMSs started allowing JSON in a database. Does this violate 1NF?
One of the rules of 1NF is not storing multiple values in one column. But we are storing JSON, which can contain a key-value pair. Does this break the rule?
Many DBMSs started allowing JSON in a database. Does this violate 1NF?
One of the rules of 1NF is not storing multiple values in one column. But we are storing JSON, which can contain a key-value pair. Does this break the rule?
If you think of a single JSON column as just an atomic attribute column, then it's fine with respect to normal forms.
The problem comes when people try to treat the fields within the JSON document as if they are attribute columns. Searching, sorting, joining, aggregating, etc. against JSON fields as if they are discrete attributes.
This is even worse than violating 1NF. It violates the fundamental definition of a relation. So it can't even satisfy the preconditions of 1NF.