Page 1 of 1

Extracting data from arguments

PostPosted: Wed Feb 27, 2013 11:20 am
by Gordon McLean
Hi

Does anyone know how to extract the arguments out of this string

{limit:{25},page:{1},start:{0},callback:{Ext.data.JsonP.callback1},desk:{1},_dc:{1361956523821},org:{11}}

I have tried

arguments[0][key]
arguments[0].desk
etc

What I want from the string is desk and org items..

Many thanks
Gordon

Re: Extracting data from arguments

PostPosted: Wed Feb 27, 2013 11:24 am
by Gordon McLean
found my own answer sorry to waste the bandwidth

Arguments
{limit:{25},page:{1},start:{0},callback:{Ext.data.JsonP.callback1},desk:{1},_dc:{1361956523821},org:{11}}

Extract using
arguments[0]['desk']

Result = 1