pixeldev pixeldev - 4 months ago 42
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

VB.NET
, how can arrays be JSON encoded?

Answer
Dim serializer as New JavaScriptSerializer()
Dim arrayJson as String = serializer.Serialize(myArray)