- Adding .NET reference System.Web.Extensions
- Use namespace System.Web.Script.Serialization
- Create appropriate classes to describe the target JSON structure
The following example demonstrates how to read from and write to a JSON object.
Note: The JSON string used below is adopted from web.
P.S. In C#, two double quotes are used to describe one double quote in a multi-line literal (string), all escape characters (e.g. \") does not work in this case
Note: The JSON string used below is adopted from web.
P.S. In C#, two double quotes are used to describe one double quote in a multi-line literal (string), all escape characters (e.g. \") does not work in this case
No comments:
Post a Comment