如何在VB.NET中以JSON编码数组?

问题描述:

我需要为我正在使用的例程传回JSON结果.在VB.NET中,如何对数组进行JSON编码?

I need to pass back a JSON result for a routine I am working with. In VB.NET, how can arrays be JSON encoded?

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