And if this really is the data you are getting from the server then it
won't work like you want. You only have 2 single arrays here. The
values needs to be an array or arrays. The data should look like this
in order to get 3 rows of data:

    {
        "fields": ["id","name","age"],
        "values": [[1,"xxx",21],
                        [2,"yyy",22],
                        [3,"zzz",23]]
    }

Jim


On Fri, Feb 11, 2011 at 7:27 AM, slah <[email protected]> wrote:
>
> Hello,
> I've developed a json-rpc server, I'm testing it,
> the server queries a database and returns results as json.
>
> I want to use it with qooxdoo,
>
>
> My question is: if the server returns a json string like this one:
>
>    {
>        "fields": ["id","name","age"],
>        "values": [1,"xxx",21,
>                        2,"yyy",22,
>                        3,"zzz",23]
>    }
>
> is it possible to create a qooxdoo table where  id| name| age are column
> titles and
>
> 1| xxx| 21
> 2| yyy| 22
> 3| zzz| 23
>
> are rows.
>
> Best regards
> --
> View this message in context: 
> http://qooxdoo.678.n2.nabble.com/RPC-JSON-Server-First-test-tp6016136p6016136.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