Hi,

qx.data.store.Json marshals [1] the loaded Json into qooxdoo objects.

Let's assume your Json contains a top-level Array "items". In your example you 
would then access this array with data.getItems(). You get back a qx.data.Array 
which you can for example convert to an ordinary array to work with .filter() 
[2, 3]. Alternatively, qx.data.Array#contains might do the trick.

Tristan

[1 http://demo.qooxdoo.org/current/apiviewer/#qx.data.marshal.Json]
[2] 
https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter
[3] http://demo.qooxdoo.org/current/apiviewer/#qx.lang.Array

Am 10.02.2011 um 21:03 schrieb fahri:

> 
> Hi
> 
> How can I search through the JSON object?
> 
> var store = new qx.data.store.Json("...url");
> store.addListener("loaded", function(e)
> {
>  var data = e.getData();
> },this);
> 
> Thanks
> -- 
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/qx-data-store-Json-tp6013256p6013256.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to