Use hashtable variable in Dashboard

Product: PowerShell Universal
Version: 3.8.12

Hello , newbie question again (there will be a lot of them i think)
I’m trying recreate some of forms from different automation solution in Powershell.
Never mind problems with GUI part (i will fix that later) but im facing some strange (or maybe expected) behavior regrading how PU treats variables.
To the point.
I have an external API (an cmdb database). I query that database for account name. It returns something like this (in classic powershell):

id jsonrpc result                                                                                                                                                                                               
-- ------- ------                                                                                                                                                                                               
1  2.0     {@{documentId=51065; key=Account; value=EU\TEST_ACCOUNT}}

And i can easily read id parameter, jsonrpc parameter, but cannot read result parameter.
In “normal” powershell something like this is working

$apiresult.result.documentId                                                                                                                                                                                       

But not in PU :slight_smile:

What am I missing ?

$apiresult | convertfrom-json maybe?

Its already converted.
Api calls looks like this

((Invoke-WebRequest -Uri $Uri -UseBasicParsing -Method Post -Body $RequestBody -Headers $Headers).Content | ConvertFrom-Json )