Created
December 23, 2013 02:16
-
-
Save westonplatter/8090935 to your computer and use it in GitHub Desktop.
What's the fastest way to get all the ids into a single Javascript array?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "id": "0", | |
| "item": [ | |
| { | |
| "id": "1161736030", | |
| "open": "1", | |
| "text": "12\/14\/2013", | |
| "item": [ | |
| { | |
| "id": "1163797134", | |
| "text": "CASE", | |
| "item": [ | |
| { | |
| "id": "1", | |
| "text": "1214-1" | |
| } | |
| ] | |
| }, | |
| { | |
| "id": "1163945744", | |
| "text": "HAHA", | |
| "item": [ | |
| { | |
| "id": "2", | |
| "text": "1214-2" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not sure about performence, but this works,
terminal output