Refactored JSON interfaces.
Removed cases that the lexer should prevent.

Replace this with itemError checks at a later point.