Custom DataProviders

In my app i am pulling from a few different web services for movie data (netflix/freebase) and would like to use the data returned in a GridView with pagers much like i would use a activerecord data result.

I have been playing about with extending CDataProvider but just seem to be running into a wall with figuring this out.

Has anyone out there used a dataprovider in this way?

Both services come back as JSON responses to work with.

What about decoding JSON and feed the result to the new CArrayDataProvider available in svn.

(not tested)

/Tommy