Convert into json object

Hi Team,

I have string ,

{“name”: “ABC”, “roll no”:“1”, “id”:“2”}

I want access it via json object format so I can read like JObject(“name”)

Hi @pankajmohan.dhane

Download the http request package(uipath.webapi.activities) and you will have a deserialize json activity which will convert given string to json format

Cheers

I don’t want to use activity , any other way?

Hi @pankajmohan.dhane

May I know why you dont want to use an activity?

That activity is for converting a json string to jobject as you needed

Cheers

@pankajmohan.dhane

Use this in invoke code

JObject json = JObject.Parse(str)

Str is input string jaon ia output object

Cheers

what will be the variable type of JObject json?

@pankajmohan.dhane

Jobject is the variable type

1 Like

oops! Worked thanks.

1 Like

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