views:

69

answers:

1

Hi folks,

I need to perform a lot of serializing and de-serializing in an application.

The data is POST parameters and Cookie headers.


Post data example:

Name=Jonathan+Doe&Age=23&Formula=a+%2B+b+%3D%3D+13%25%21

Set-Cookie data example:

ASP.NET_SessionId=esur3bqqgrmnci45um4xegye; path=/


Does anyone have any fast libraries to suggest or efficient ways to perform these operations?

+1  A: 

Consider using a JSON stringify method:

http://zumbrunn.com/mochazone/JSON.stringify+and+JSON.parse/

JSON is a fairly universal serialization format that you can parse in ASP.Net. Basically it converts a JS object into a string of text that represents the object itself (as if you were to type the object declaration out literally).

mattbasta