public override void Parse(StringReader reader) { while (((char)reader.Peek()) != '}') { var name = Deserialize(reader) as JSonString; if (reader.Read() != ':' || name == null) { throw new InvalidOperationException("failed to read object"); } var val = JSon.Deserialize(reader); Fields[name.Value] = val; while (reader.Peek() == ',') { reader.Read(); } } reader.Read(); }
public void Parse(string input = Input) { var reader = new StringReader(input); _parsed = JSon.Deserialize(reader); }