[入門] JSON.NET 入門= jarray 很重要
https://dotblogs.com.tw/johnny/2014/05/04/intro-to-jsonnet
https://jsoneditoronline.org/
==========================================================
//JSON字串
string Json = textBox2.Text;
//轉成物件
ArrayList arrayList = new ArrayList();
arrayList = JsonConvert.DeserializeObject<ArrayList>(Json);
textBox3.Text = arrayList[0].ToString();
textBox4.Text = arrayList[1].GetType().Name;//型態為JArray
JArray output1 = (JArray)arrayList[1];
JArray output2 = (JArray)output1[0];
textBox5.Text = (string)output2[0];
JArray output3= (JArray)output2[1];
textBox6.Text = (string)output3[0];
============================================================
https://ithelp.ithome.com.tw/questions/10189022
https://dotblogs.com.tw/stanley14/2016/03/11/190123
https://jsoneditoronline.org/
沒有留言:
張貼留言