get value of nested obj at a given key-path