Fix parsing of json objects.

- ID is not returned by the lexer, so use STRING type for keys;
- An object with a single key had not been treated correctly;
- Unify parser for arrays and objects.