日期:2014-05-17 浏览次数:20786 次
string str = "[[\"a\",\"b\",\"c\"],[\"a1\",\"a2\",\"a3\"],[\"b1\"],[\"b2\"],[\"b3\"]]";
str = str.Replace("[", "");
str = str.Replace("]", "");
str = str.Replace("\"", "");
List<string> list = str.Split(',').ToList<string>();
class Program
{
static void Main(string[] args)
{
string json = "[['a','b','c'],['a1','a2','a3'],['b1'],['b2'],['b3']]";
JsonReader reader = new JsonTextReader(new StringReader(json));
while (reader.Read())
{
Console.WriteLine(reader.TokenType + "\t\t" + reader.ValueType + "\t\t" + reader.Value);
}
}
}
public class Info
{
public Info()
{