I'm new to this. And I hope someone can help me figure out how to do this So I have this import on my vb file
Import Namespace="System.Web.Script.Serialization"
Sure I can print JSONObjects however what I want is to print the objects with an array node.
Dim arr As New List(Of arr)()
arr.Add(New arr With{.arrId = 0, .arrName = "XXX"})
arr.Add(New arr With{.arrId = 1, .arrName = "YYY"})
If I serialize it, it will print this:
[{"arrId" : 0, "arrName" : "XXX"},{"arrId" : 1, "arrName" : "YYY"}]
But what I want is something that can specify those objects like the word "arrs" e.g.
["arrs":{"arrId" : 0, "arrName" : "XXX"},{"arrId" : 1, "arrName" : "YYY"}]
Any idea on how I can add "arrs" (list) inside this serialized array?
Thanks in advance!