Is there a way to build datasource from JSON object array manually?

Now I’m interacting with a existed web service. The web service reture a JSON object like this :

I’m using GWT java overlay object to process the return JSON. So I have a java overlay object named product which is mapped to product of result property.
Now this is my question. How can I build a smartgwt datasource from the products JSArray?
BTW, I can not rebuild the server side web service code in order to generate a smartgwt standard JSON reponse.
Thanks in advance!

Call Record.convertToRecordArray(JavaScriptObject jsObj) passing the JavaScriptObject corresponding to the “result” array. This returns a Record array which you can pass to DataSource.setTestData(..).

Sanjiv

Sanjiv, thank you very much! I had solved the problem using RestDataSource.