refactor($parse): remove the support of JSON parsing mode

It's a feature that isn't exposed to the public, and is no longer used internally (not even tested).

See #7540

As opposed to #7543, I considered `literal` and `constant` as two distinct concepts.