An array is an ordered data structure consisting of a collection of elements. Nested array is collection of array. Use this tag for questions related to nested-array.

learn more… | top users | synonyms

0
votes
3answers
748 views

How can i sort Nested JSON Array?

How can i sort Nested JSON Array? Like for a JSON below... { "id":"rtmc05.lax.someabc.net", "name":"rtmc05.lax.someabc.net", "tenants":[{ "id":"rtmc", "name":"rtmc" ...
0
votes
2answers
19 views

Recursive way to find parent_id and convert a multidimensional array to one dimensional

I want to convert a multidimensional array, like: array (size=3) 0 => object(stdClass)[853] public 'id' => int 1 public 'children' => array (size=5) 0 ...
0
votes
2answers
33 views

Nested array in android

I want to make/handle nested array in android. My nested array will be similar to this. [array name] = [1] = [1] = a [2] = b [3] = d [2] = [1] ...
0
votes
2answers
34 views

Sorting three lists into a single list given that each list is sorted

I have three nested arrays, containing around 10,000 elements (each array has a different number of elements). These arrays are ordered with respect to the 0th element and the 1st element in each ...
0
votes
2answers
139 views

Sorting nested arrays via an Element in each Sub Array

Assuming I have something coming back from a JSON request that essentially looks like this -- $data = array('0'=> array('name' => 'Dr. Smith', 'address' => '3002 ...
1
vote
1answer
254 views

Searching in UItableview - Using Nested Array NSpredicate

I'm having a lot of trouble trying to figure out how to displays my filtered search results on the UItableview . My displays methods work very well ... but when I try to search for a specific data ...
0
votes
1answer
28 views

Nested Array with LEFT JOIN TABLE extracting results

I may be doing this all wrong, but I really need help grasping how to work through nested arrays. I have two tables User and Reviews. This is the SELECT statement I am using: SELECT * FROM ...
0
votes
1answer
58 views

PHP and MySQL get result as nested arrays

I have these lines of code that populates a list of computers based on their manufacturer: <?php $query = " SELECT m.manufacturerName , c.id , c.computerName , GROUP_CONCAT(c.model ...
0
votes
1answer
33 views

Iterate through two nested arrays for data comparison in php

Alright everyone, I have two arrays that look like this: array(3) { ["15PCW"]=> array(4) { ["longitude"]=> string(17) "-88.3511517556820" ["latitude"]=> string(16) ...
0
votes
1answer
29 views

cakephp nest array from sub into sub relation

I need result from 4 tables in the following format array( (int)0=>array( 'Fee'=>array( 'id'=>'1', 'student_id'=>array( ...
0
votes
1answer
58 views

Meteor Multiple Find Multiple

Developing a new app in Meteor, which I have little experience in. Just got handlebars/blaze figured out I think, now Mongo.. I have a database filled with records like this (3000+ atm, production ...
0
votes
1answer
26 views

Assigning user-determined coordinates to a nested array

I have two integers, range1 and range2, and a nested integer array distance[][]. I also have two integer arrays, elasticity[] and resistance[], both containing a group of user-determined values. The ...
0
votes
1answer
36 views

NSpredicate Results

I have array compose of 2 dictionaries . The first dictionary is grouped by Services and gives me the numbers of Companies that has the same service in a array containing my second dictionary with all ...
0
votes
1answer
78 views

projections and index on 2D nested arrays in mongodb

> db.foo.save({'foo': [{f0: 'a', f1: 'b'}, {f0: 'c', f1: 'd'}]}) > db.foo.save({'foo': [{f0: 'a', f1: 'e'}, {f0: 'f', f1: 'g'}]}) > db.foo.save({'foo': [['a', 'b'], ['c', 'd']]}) > ...
0
votes
1answer
137 views

Javascript Nested-Array throwing 'TypeError' - Error

I'm trying to create a nested array in Javascript, but whatever I try to get something out of this array I get an error 'TypeError'. Here is the code snippet: var domains =new Array(); ...
0
votes
1answer
787 views

PHP to Smarty, displaying some nested Arrays

I'm having some issues displaying some nested array results in smarty... here's what I have: $searchResults - an array, where each row is a result set. No problem here. $searchResults[$row][users][] ...
1
vote
0answers
14 views

Parsing nested array with connect.urlencoded()

I have a web application that normally submits to a Spring MVC application. Posted form data looks something like this: formBean[0].id="100" formBean[0].name="Bill" formBean[1].id="101" ...
1
vote
0answers
101 views

Assign_block_vars in multi-dimensional arrays

I have a unique problem that I cannot seem to find or figure out the answer to because I am trying to do a few things at once. I've tried researching each thing to find out the answer but it is ...
1
vote
0answers
120 views

Passing nested array as parameter for function in VBA results in compile error “Expected: =”

I am attempting to Construct an array (testSheets) that holds a file name and a file path as strings. I then wish to contain this array inside of another array (shtsTmpl). Then, I want to pass the ...
1
vote
0answers
130 views

Traverse nested Javascript arrays to create paths

I have an arbitrarily nested data structure like this - var nested = [ 'a', [ [ 'b' ], [ 'c' ] ] ]; I would like to traverse the levels to create an array of arrays like this var paths = [['a', ...
1
vote
0answers
156 views

Restkit nested array mapping fault

I am trying to map following structure: Plan.json: { "id" : "1", "floors" : [ { "floor" : "1", "constrains" : { "southWest": { "latitude": ...
0
votes
0answers
423 views

Delete item from nested object array

I'm working with AngularJS and have an object array like that in my controller : $scope.folderList = [{ name: 'root', path: 'uploads/', subs: [{ name: 'pictures', path: ...