Dim jo As New JObject
jo("Name") = "张三"
jo("y") = "10
Dim ja As New Jarray '定义数组
ja.Add(jo)
Dim ja1 As New Jarray
ja1.Add("宏观经济")
ja1.Add(15.0)
ja.Add(ja1)
Output.Show(ja.ToString)
Dim yaowen() As Decimal = {15, 3, 24, 7, 2, 4}
Dim kuaixun() As Decimal = {12, 2, 23, 2, 1, 7}
Dim zixun() As Decimal = {13, 4, 24, 2, 5, 3}
Dim timestamps() As String = {"要闻", "快讯", "资讯"}
生成这个格式 怎么写?
[{
name:
'要闻',
data: [15, 3, 24, 7, 2,4]
}, {
name:
'快讯',
data: [12, 2, 23, 2, 1,7]
}, {
name:
'资讯',
data: [13, 4,24, 2, 5,3]
}]
Dim jo As New JObject
jo("Name") = "要闻"
Dim ja1 As New Jarray
ja1.Add(15)
ja1.Add(3)jo("data") = ja1
Dim ja As New Jarray '定义数组
ja.Add(jo)
jo = New JObject
jo("Name") = "快讯"
ja1= New Jarray
ja1.Add(12)
ja1.Add(2)jo("data") = ja1
ja.Add(jo)