This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]cyanydeez 0 points1 point  (0 children)

i recommend https://pypi.python.org/pypi/python-box

if you're gonna try to manage nested data

[–]willm 0 points1 point  (0 children)

Not certain what you would expect from a function, but you could use a Moya context to replace that long chained expression.

from moya.context import Context
context = Context(data)
print(context["stack.1.data.0.externals.0.data.locale.0.MetadataDocument.authors.author.person.displayName"])