Timeline for Getting multiple keys' values from nested object in JSON (w/out jQuery)
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 26, 2014 at 21:13 | comment | added | user1613163 | @200_success Thx for this - got it. | |
| Aug 25, 2014 at 18:48 | comment | added | 200_success |
Welcome to Code Review. The next time you ask a question, we would much prefer that you use realistic identifiers (perhaps swimSessions instead of myObj) and realistic data (e.g. '2014.08.25' instead of '150'). It's hard to answer questions when we can't tell what you mean literally and what is hypothetical.
|
|
| Aug 25, 2014 at 18:08 | vote | accept | user1613163 | ||
| Aug 25, 2014 at 18:03 | comment | added | user1613163 | @Schism Btw, what I meant was that I'd assumed the users should be an array however I wasn't sure how to navigate for the desired results; would it be something like 'for (var key in myObj.Users){ ...' ? | |
| Aug 25, 2014 at 17:52 | answer | added | cbojar | timeline score: 8 | |
| Aug 25, 2014 at 17:29 | comment | added | user1613163 | @Schism Thx for the sugg. Pretty sure at some point in dev I had an array of users, however that's a new question as to how to retrieve the data as described. Care to offer a hint? Thx! | |
| Aug 25, 2014 at 17:28 | history | edited | Jamal | CC BY-SA 3.0 |
deleted 44 characters in body
|
| Aug 25, 2014 at 17:27 | comment | added | user1613163 | @cbojar No the names are not literally 'date 01', etc.; they will be actual dates, e.g., 2014.08.25, i.e., sets of date/time data pair for each user | |
| Aug 25, 2014 at 17:25 | review | First posts | |||
| Aug 25, 2014 at 18:44 | |||||
| Aug 25, 2014 at 17:24 | comment | added | Schism |
You should definitely at least be using an array instead of User01, User02, ...
|
|
| Aug 25, 2014 at 17:24 | comment | added | cbojar |
Are the names literally date 01, etc.? If so, why not simply make "dates & times" an array of time values, and build the string from the index?
|
|
| Aug 25, 2014 at 17:20 | history | asked | user1613163 | CC BY-SA 3.0 |