Exemplo n.º 1
0
        /// <summary>
        /// Parses the specified text reader content into a <see cref="JsonValue"/>
        /// </summary>
        /// <param name="reader">The reader to read.</param>
        /// <returns>The <see cref="JsonValue"/> read from the reader.</returns>
        public static JsonValue ParseValue(TextReader reader)
        {
            var tokenizer = new JsonTokenizer(reader);
            var parser    = new JsonTextPreservingParser(tokenizer);

            return(parser.ParseValueOrProperty());
        }
 /// <summary>
 /// Parses the specified text reader content into a <see cref="JsonValue"/>
 /// </summary>
 /// <param name="reader">The reader to read.</param>
 /// <returns>The <see cref="JsonValue"/> read from the reader.</returns>
 public static JsonValue ParseValue(TextReader reader)
 {
     var tokenizer = new JsonTokenizer(reader);
     var parser = new JsonTextPreservingParser(tokenizer);
     return parser.ParseValueOrProperty();
 }