code: public void parse () throws JsonParseException
    {
      _readValue ();
  
      // Check for trailing whitespaces
      _skipSpaces ();
  
      final IJsonParsePosition aStartPos = m_aPos.getClone ();
  
      // Check for expected end of input
      final int c = _readChar ();
      if (c != EOI)
        throw _parseEx (aStartPos, "Invalid character " + _getPrintableChar (c) + " after JSON root object");
    }
docs: Main parsing routine
  
  @throws JsonParseException
  In case a parse error occurs.