///////////////////////////////////////////////////////////////////////////// private void FileRead( string fileName ) { // ****** string text = File.ReadAllText( fileName ); ParseStringReader reader = new ParseStringReader( text ); // ****** while( !reader.AtEnd ) { char ch = reader.Next(); Console.Write( ch ); } // ****** Console.Write( "\n\n\n" ); }
///////////////////////////////////////////////////////////////////////////// public JSONParser( JSONItemHandler handler, string text ) { // ****** this.handler = handler; reader = new ParseStringReader( text, "json text" ); // ****** ValidationRun = false; LastIdentifier = string.Empty; LastValue = null; }