Last active
August 29, 2015 14:08
-
-
Save Klerith/7e59956371ea7f2ebb06 to your computer and use it in GitHub Desktop.
VB.NET: Serialize a jSon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class PNLinea | |
Public periodo As String | |
Public regimen As String | |
Public causa As String | |
Public identidad As String | |
Public nombres As String | |
Public area As String | |
Public numepago As String | |
Public montopagarmensual As String | |
End Class | |
Class PNResultados | |
Public err As Integer = 0 | |
Public mensaje As String | |
Public resultados() As PNLinea | |
End Class | |
ReDim Preserve Resultados.Resultados(conteo) | |
Resultados.Resultados(conteo) = Linea | |
Dim ser As New System.Web.Script.Serialization.JavaScriptSerializer() | |
Dim json as String = ser.Serialize(Resultados) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment