As we saw earlier in the chapter, a reader helps us in data loading and converting the incoming data into a model, which can then be added to a store. Based on the type of data, Sencha Touch provides two readers namely
XmlReader. In this recipe, we will see how to make use of the
JsonReader to read the JSON data and prepare a model out of it.
Make sure that you have set up your development environment by following the recipes outlined in Chapter 1, Gear Up for the Journey.
Make sure that you have the
ch05 folder created inside the
Carry out the following steps:
users.jsonand paste the following code into it: ...