I transferred a multidimensional array into JavaScript via <?php echo json_encode($my_array); ?> And I would like to compare entries of that JSON with other variables. So how could I get an object as string without the sub-entries?
Let's say my object is [Object { 1429={Object { 8766={...}, 8483={...}, 7345={...}}}}, Object { 9041={...}}]
So how could I get 1429 or 8766 as String? I know how to do that with a multidimensional array in PHP (there it is key()) - but what would it be in JavaScript?
1429and8766. Can you please post some real code?