指定 JavaScriptSerializer 不序列化公共屬性或公共字段。沒法繼承此類。javascript
命名空間: System.Web.Script.Serialization
程序集: System.Web.Extensions(在 System.Web.Extensions.dll 中)java
} web
返回的Json以下:spa
[{"ID":1,"Name":"AAAA","Age":18},{"ID":2,"Name":"BBBB","Age":19},{"ID":3,"Name":"CCCC","Age":20}]