I have a JSON object which looks like this:
[{"tabname":"orders","datagroups":[{"dataname":"ordersToday","datavalue":9},{"dataname":"orders30Days","datavalue":126}]}] When I use console.log($.parseJSON(thedata)) I just get the word Object and no actual data.
How do I organise this data into a multidimensional javascript array? so that it looks something like this:
array("tabname"=>"orders", "datagroup"=>array(array("dataname"=>"ordersToday", "datavalue"=>9),array("dataname"=>"orders30Days","datavalue"=>126)))
Objectin the console to see what it contains. Or do aconsole.log(JSON.stringify(parsedData))console.dir()instead.0property you will see an object, if you expand that one'sdatagroupsproperty you will get the inner arrayà