Added an improved error reporting.
Validate a rule.
Incorporated a white space detection in a grammar.
Updated JSON grammar and corresponding tests.