Timeline for What is the best to select a javascript object property at any depth?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 25, 2014 at 10:35 | comment | added | sqykly | Looks like you're re-inventing JsonPath. I did that once for MVC-style property objects. See goessner.net/articles/JsonPath | |
Jan 24, 2014 at 22:12 | answer | added | megawac | timeline score: 2 | |
Jan 24, 2014 at 20:30 | vote | accept | chafnan | ||
Jan 24, 2014 at 20:14 | comment | added | chafnan | @megawac I like the idea of passing in the string 'foo.bar' then splitting it into the array. Might make better sense for the user. | |
Jan 24, 2014 at 19:32 | comment | added | megawac |
Here's how I've done it in the past, however I extended it to convert 'foo.bar[0]' => ['foo', 'bar', '0']
|
|
Jan 24, 2014 at 18:45 | answer | added | konijn | timeline score: 2 | |
Jan 24, 2014 at 18:37 | comment | added | konijn | That is a really roundabout way of doing things. | |
Jan 24, 2014 at 18:33 | review | First posts | |||
Jan 24, 2014 at 18:52 | |||||
Jan 24, 2014 at 18:17 | history | asked | chafnan | CC BY-SA 3.0 |