Example #1
0
 public static IConvertible Read(TextReader reader)
 {
     var state	= new JavaScriptReader(reader);
     var v	= state.ReadCore();
     state.SkipSpaces();
     if(reader.Read() >= 0)
         throw state.JsonError(String.Format("extra characters in JSON input"));
     return v;
 }
Example #2
0
        public static IConvertible Read(TextReader reader)
        {
            var state = new JavaScriptReader(reader);
            var v     = state.ReadCore();

            state.SkipSpaces();
            if (reader.Read() >= 0)
            {
                throw state.JsonError(String.Format("extra characters in JSON input"));
            }
            return(v);
        }
Example #3
0
 public static IConvertible ReadJson(this TextReader reader)
 {
     return(JavaScriptReader.Read(reader));
 }