I'm building a project for connecting several services together using blockly. These services can return fairly complex objects. Is there an existing way to allow the user to drill down in an object to get a value somewhere further down? The structure of the object is known in advance.
So for example, if I have a User object like this:
{
"id": "x0a1bc34df0zy",
"username": "John Doe",
"email": "jd...@example.com",
"address": {
"street": "Bogus Avenue",
"number": 404,
"state": "BZ",
"country": "JK"
}
}
I'd like users to be able to select "address", then "street", but also just "email", and get the value. Is there a solution for something like this out there, or would I have to build a custom block for this? If so, how would you recommend going about this?