pixeldev pixeldev - 1 year ago 181
Vb.net Question

How can I JSON encode an array in VB.NET?

I need to pass back a JSON result for a routine I am working with. In

, how can arrays be JSON encoded?

Answer Source
Dim serializer as New JavaScriptSerializer()
Dim arrayJson as String = serializer.Serialize(myArray)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download