Dim jo As New JObject
Dim ja As New JArray
Dim n As Integer = Tables("订单").Rows.Count
Dim i As Integer
For i = 0 To n-1
ja.add(new jobject)
ja(i)("name") = Tables("订单").rows(I)("产品").Tostring
ja(i)("数量") =val(Tables("订单").rows(I)("数量"))
jo("staff") = ja \'
Next
Output.Show(ja.Tostring)
Dim jo As New JObject
Dim ja As New JArray
Dim n As Integer = Tables("订单").Rows.Count
Dim i As Integer
For i = 0 To n-1
ja.add(new jobject)
ja(i)("产品") = cstr(Tables("订单").rows(I)("产品"))
ja(i)("数量") =cint(Tables("订单").rows(I)("数量"))
jo("staff") = ja \'
Next
Output.Show(ja.Tostring)