API - POST Error / Get Response Error

Hi ,

this is my response from API .


“body”: {
“type”: “doc”,
“version”: 1,
“content”: [
{
“type”: “paragraph”,
“content”: [
{
“text”: "RPA Test ",
“type”: “text”
}
]
}
]
}


image

I can get the type - doc using below syntax.
(“body”)(“type”).ToString

I want to get the - “text”: "RPA Test ", I tried below its throwing Error.

(“body”)("content ")(“content”).ToString

any correction here?

Regards,
Srenivasan Kannan

Hi @SrenivasanKanna

Try like this:

("body")("content")(0)("content")(0)("text").ToString
2 Likes

Hey @loginerror

Its working Well. Thank you so much :muscle:

2 Likes

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