43028

json Serialization in asp

I have currently a dataset in asp which contains my members details.

I am trying to serlize it so that it is similar to json_encode() in php which produces

[{"0":"1","id":"1","1":"Eric","name":"Eric","2":"1","sex":"1","3":"1992","birthyear":"1992"},{"0":"2","id":"2","1":"Tom","name":"Tom","2":"1","sex":"1","3":"1992","birthyear":"1992"}]

Any help here?

Answer1:

The <strong>json.org</strong> website links to two libraries, for ASP :

Recommend

  • Need tricky idea to use JS variable in php
  • Stored data can't access in Yii
  • Is there a MySQL query that can encode to JSON in exactly this way?
  • Entity Framework Code First Circular Dependices
  • FCM on app closed
  • alogrithm for traveling throw a sequence [closed]
  • Name hiding in constructor initialization list
  • Loading a Type Library via PowerShell and scripting Windows Live Writer
  • Performance difference between accessing local and class member variables
  • Call C++ class member function from C (Visual Studio)
  • Fancy dynamic list in Android: TableLayout vs ListView
  • What is the official release update URL for Aptana Studio 3.0?
  • Keep same scale in different graphs ggplot2
  • True privateness in Python
  • Limit Selectable DOM Checkboxes
  • What is the right syntax for “timeframe” in MailChimp API 3.0
  • Stacked Bar Chart with percentage composition inside the Bar and total above the Bar in JFreeChart
  • Program crashes when run outside IDE
  • How do i find all references to a user control
  • Can you use DataSet and DataTables in a Portable Class Library
  • HALF_PTR Windows data type
  • Fat binaries in iOS
  • Put value at centre of bins for histogram
  • C# List of Panels
  • How to return DataSet (xsd) in WCF
  • Android Google Maps API v2 start navigation
  • how to avoid repetitive constructor in children
  • Custom validator control occupying space even though display set to dynamic
  • Spark fat jar to run multiple versions on YARN
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • ActionScript 2 vs ActionScript 3 performance
  • Upload files with Ajax and Jquery
  • jquery mobile loadPage not working
  • Do I've to free mysql result after storing it?
  • A cron job substitute?
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How to stop GridView from loading again when I press back button?
  • Programmatically clearing map cache