I am learning how to work with webservices using Dojo. The following JSON is returned from a webservice. I would like to handle it via an ItemFileReadStore, but from what I have tried so far the ItemFileReadStore only works if the keywordstat term is changed to items. Is there a way to tell ItemFileReadStore to work with keywordstat, or does it have to be items? It seems the other alternative is to write a custom store but that seems like overkill when ItemFileReadStore is so close.
{
"keywordstat": [{
"word": "Apple",
"count": "1"
}, "word": "It's", "count": "1"
},
{
"word": "The",
"count": "3"
},
{
"word": "We've",
"count": "1"
},
{
"word": "amazing",
"count": "1"
}]
}
Turns out its absurdly simple to make a new ReadStore. I created a KeywordStatReadStore by copying the existing ItemFileReadStore and changing
to
Problem solved.