111,094
社区成员




var a = new { A = "C-180",
B = new []{"tag1", "tag2", "tag3"},
C = new string[]{},
D = new [] {"SE"},
E = new []{
new {market="SE", value= new {amount=6.39,currency="USD"}}
}
};
Console.WriteLine(JsonConvert.SerializeObject(a, Formatting.Indented));
public class Rootobject
{
public string A { get; set; }
public string[] B { get; set; }
public object[] C { get; set; }
public string[] D { get; set; }
public E[] E { get; set; }
}
public class E
{
public string market { get; set; }
public Value value { get; set; }
}
public class Value
{
public float amount { get; set; }
public string currency { get; set; }
}