I am unable to deserlize data which i got from get trasaction item in C#, can any one help

image
i had got data from transaction item and i want to deserralize

1 Like

Hey @MitheshBolla

Kindly use .ToString at the end please…

Reason : SpecificContent usually returns an object whereas Deserialize only accepts string as input

Thanks
#nK

1 Like

if i use .tostring also its trowing error
image

1 Like

Hey @MitheshBolla

Just change the [ to (

Both open and close brackets.

Sorry just noticed it.

Thanks
#nK

but queue content cannot use like method . this we need to use

1 Like

Hey @MitheshBolla

Your project is configured for C# or VB please ?

Thanks
#nK

its C#

1 Like

Hey @MitheshBolla

Please find the below statement for C#

TransactionItem.SpecificContent["key"].ToString()

Thanks
#nK


to many ileagl character

1 Like

Kindly use double quotes. Add the full statement and let know if still error occurs.

Thanks
#nK

even if it is in double quotes and with.tostring erros has occured

1 Like

Attach your code please…

Thanks
#nK

ensure that the brackets are also used as ToString() check for the right cases (lower/upper cases) feel free to check the need of closing the statement with a semicolon ;

1 Like

bro


this was vb, default value for c# how to write?

new Dictionary<String, Object>();

open new topic on your last question, when you need further help on this

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.