added syntaxexception throwing in the JsonScanner.