Hello @Victor Brito and welcome to Microsoft Q&A. Thank you for the excellent question. I believe I have an answer for you. Please let me share my steps.
It sounds like you are passing in a JSON object which includes metadata. To stand in for this, I created a parameter, and gave it the string literal
'{"ParentObject":{"foo":"bar","attribute":"thing_I_want"},"otherObject":4}'
While trying to access the JSON as an object is the commonsense approach, since it isn't working, I decided another approach was in order.
Since JSON is fundamentally just well-formatted text, I figured a regular expression should be able to extract what we need.
byName(regexExtract($parameter1,`"attribute":"(\w+)"`))
I tested this by adding a column named "thing_I_want" , and placing the above in a later derived column1.