Access deep object member of embeded JSON
问题 The following function does an amazing job of retrieving a deep object key value with a dot notated string: function getPathValue(obj, path) { return new Function('_', 'return _.' + path)(obj); } For example, it returns the value for a key like "bar" using the following as the path argument: 'data.abc.foo.bar' However, some API's pack additional stringified JSON into some key values. I'm looking for an enhancement to the above function that will handle that case. For example, Stack's own