Walking a JavaScript object

Recently I was trying to solve a problem where I had a JSON path to a property on an object, the path was going to be n layers deep and the object itself was also n layers deep. I needed to solve this problem in a fairly generic manner, as there was a …


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Recently I was trying to solve a problem where I had a JSON path to a property on an object, the path was going to be n layers deep and the object itself was also n layers deep. I needed to solve this problem in a fairly generic manner, as there was a number of different scenarios under which this could would be run. Basically I had this: var path = 'foo.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2022-09-29T19:58:50+00:00) » Walking a JavaScript object. Retrieved from https://www.scien.cx/2013/06/21/walking-a-javascript-object/.
MLA
" » Walking a JavaScript object." Posts on LINQ to Fail | Sciencx - Friday June 21, 2013, https://www.scien.cx/2013/06/21/walking-a-javascript-object/
HARVARD
Posts on LINQ to Fail | Sciencx Friday June 21, 2013 » Walking a JavaScript object., viewed 2022-09-29T19:58:50+00:00,<https://www.scien.cx/2013/06/21/walking-a-javascript-object/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Walking a JavaScript object. [Internet]. [Accessed 2022-09-29T19:58:50+00:00]. Available from: https://www.scien.cx/2013/06/21/walking-a-javascript-object/
CHICAGO
" » Walking a JavaScript object." Posts on LINQ to Fail | Sciencx - Accessed 2022-09-29T19:58:50+00:00. https://www.scien.cx/2013/06/21/walking-a-javascript-object/
IEEE
" » Walking a JavaScript object." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2013/06/21/walking-a-javascript-object/. [Accessed: 2022-09-29T19:58:50+00:00]
rf:citation
» Walking a JavaScript object | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2013/06/21/walking-a-javascript-object/ | 2022-09-29T19:58:50+00:00
https://github.com/addpipe/simple-recorderjs-demo