Jan 12, 2015, 12:49 AM
[CLOSED] JSON Deserialization Question
I have a Store that use a handler to retrieve data
<ext:Store ID="LiveStatusTWMStore" runat="server" AutoLoad="false">
<Proxy>
<ext:AjaxProxy Url="Handlers/RequestHandler.ashx?mode=LiveStatusByDate">
<Reader>
<ext:JsonReader Root="data" SuccessProperty="success" MessageProperty="message" />
</Reader>
</ext:AjaxProxy>
</Proxy>
...
<Model>
<ext:Model runat="server" IDProperty="RequestStatus">
<Fields>
<ext:ModelField Name="RequestStatus" Type="String" />
<ext:ModelField Name="Today" Type="Int" />
<ext:ModelField Name="Week" Type="Int" />
<ext:ModelField Name="Month" Type="Int" />
<ext:ModelField Name="Quarter" Type="Int" />
<ext:ModelField Name="Year" Type="Int" />
<ext:ModelField Name="Life" Type="Int" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
I have also decided to call the handler from behind to to help build a report. I can call the data a receive the data. The format of the data is: {"Data" : [{"RequestStatus":"Created", "Today":4,"Week":10, ...},{"RequestStatus":"Opened", "Today":3,"Week":9, ...}]}
What s the best way to deserialize?
Last edited by Daniil; Jan 12, 2015 at 1:57 PM.
Reason: [CLOSED]