2012-10-16 48 views

回答

9
string j1 = @"{""a"":1}"; 
string j2 = @"{""b"":2}"; 

var j = JsonConvert.SerializeObject(new[] { JsonConvert.DeserializeObject(j1), 
              JsonConvert.DeserializeObject(j2) }); 

var j = JsonConvert.SerializeObject(new { obj1 = JObject.Parse(j1), 
              obj2 = JObject.Parse(j2) });