locked
JSON conversion RRS feed

  • Question

  • User582566331 posted

     I have to transfer multiple set of data as json. One is datatable and another one is an integer.

    The code is as follows:

     In this Dt is datatable and recordcount is an integer.

    Dim dT As New DataTable()
    Dim ProductListDAL As New ProductListDAL()
    Dim RecordCount As Integer
    dT = ProductListDAL.SelectRecordProductList("NewReleases", "", PageIndex, RecordCount, PageSize)
    'Dim ss As Integer = RecordCount
    Dim ss As String = jc.ConvertFromDataTable(dT, "ProductSearch")
    Dim hh As String = jc.ConvertfromString_noformat(RecordCount, "RecordCount")

    The output of the code is

    response_status
    value "SUCCESS"
    ProductSearch
    0
    RowNum 1
    productid "DDNARRP10001"
    publisherid "GRAP"
    categoryid "RP1"
    typeid "CP1"
    productname " ActiveReports"
    shortdescription "ActiveReports for .NET 3.0 takes the reporting capabilities of ActiveReports to a new level with significant improvements that make creating and working with reports.ActiveReports for .NET is written in fully managed Visual C# and provides complete integration into the Visual Studio .NET IDE. This gives Visual Studio .NET developers the ability to leverage current programming language skills (Visual C# or Visual Basic .NET) when developing applications with ActiveReports for .NET. ActiveReports for .NET is licensed per developer, and distribution is royalty free."
    categoryname "Reporting"
    typename "Components"
    publishername "GrapeCity, inc."

    Down I want to display

    RecordCount:

    RecordCount "1394"

    Please help me.

    Tuesday, November 20, 2018 12:30 PM

All replies