This message was deleted.
# dotnet
s
This message was deleted.
e
I don't think you need the json deserialize step, logWorkspaceReference should already be a dictionary object.
r
I see. Do you know how I would go about extracting the value from the object returned? There doesn’t appear to be a trivial way to covert an object to a dictionary. I’m wondering is there a Pulumi best practices way to accomplish this?
e
I think you should just cast it there. Like
logWorkspaceReference.Apply(x => (Dictionary<string, object>)x)
, I think structured values are due a pass over making them better at some point though. Like all this is just JSON underneath we should just let RequireOutput set the JSON deserialiser and return the right value there and then.
r
logWorkspaceReference.Apply(x => (ImmutableDictionary<string, object>)x)
worked. I don’t know why I wasn’t connecting the dots, but I’m moving again. The future state of
RequireOutput
sounds great, looking forward to its eventual arrival. Thank you so much @echoing-dinner-19531!
104 Views