Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 346
pixeldev Avatar asked Feb 23 '09 19:02

pixeldev


1 Answers

Dim serializer as New JavaScriptSerializer()
Dim arrayJson as String = serializer.Serialize(myArray)
like image 89
bdukes Avatar answered Sep 25 '22 15:09

bdukes