DataTable to JSON

前端 未结 3 1111
悲&欢浪女
悲&欢浪女 2020-11-30 08:00

I recently needed to serialize a datatable to JSON. Where I\'m at we\'re still on .Net 2.0, so I can\'t use the JSON serializer in .Net 3.5. I figured this must have been

3条回答
  •  难免孤独
    2020-11-30 08:25

    Would it help you convince your bosses to install a library if it's Microsoft's AJAX extensions for .NET 2.0?

    Included in them is System.Web.Script.Serialization.JavascriptSerializer, which is used in Step 4 of the last link in your post.

提交回复
热议问题