How to get required string in a given string

how to get a the required string…

ex:
{
“status:2”
“acce”: “eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImFQY3R3X29kdlJPb0VOZzNWb09sSWgydGlFcyIsImtpZCI6ImFQY3R3X29kdlJPb0VOZzNWb09sSWgydGlFcyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLndpbmRvd3MubmV0IiwiaXNzIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvNTIwOWE3ODUtNzkwYi00NTAzLThlZjItMDE0ZGE4OWZhNzQ4LyIsImlhdCI6MTU3MTYzODYyNCwibmJmIjoxNTcxNjM4NjI0LCJleHAiOjE1NzE2NDI1MjQsImFjciI6IjEiLCJhaW8iOiJBU1FBMi84TkFBQUFwZEc5ZHVvcEQ4NkJHd1UzOExPYjZ1Rndab01RZ2ZHZXNHaW5HUHpUTEY4PSIsImFtciI6WyJwd2QiXSwiYXBwaWQiOiI4NGU5MTA1NC1hYTcxLTRlMmItODY0Mi1lMDIwZmNlZmM2ZjEiLCJhcHBpZGFjciI6IjEiLCJpcGFkZHIiOiIxMDQuMjExLjc3LjE2IiwibmFtZSI6ImRlbW8uYWRtaW4xIiwib2lkIjoiODgzYmQ3ZWUtNmQ0Ni00YmQxLWI3NTMtM2ZhM2FjMDVkYmU4IiwicHVpZCI6IjEwMDMwMDAwQUE0MUY1QkEiLCJzY3AiOiJVc2VyLlJlYWQiLCJzdWIiOiI1VDR2RlZaVGZfX1JOMkRYOURJRXh0cHU5N3liYmZCbWNnOGZCekplMWQ0IiwidGVuYW50X3JlZ2lvbl9zY29wZSI6IkFTIiwidGlkIjoiNTIwOWE3ODUtNzkwYi00NTAzLThlZjItMDE0ZGE4OWZhNzQ4IiwidW5pcXVlX25hbWUiOiJkZW1vLmFkbWluMUBkZW1vLmV5ZXdicy5pbiIsInVwbiI6ImRlbW8uYWRtaW4xQGRlbW8uZXlld2JzLmluIiwidXRpIjoiN3RHeTNQTVBrRWlmVC05WS0yUWFBQSIsInZlciI6IjEuMCJ9”.
“code”:jlasoiaodjasoijdoadoAIOIJajidu9iwd92eu29e029e02djdjwud0jjjsoid9sd"

I need the string after the acce and before the code…

Hi hope this expression would help your resolve this
Let’s take like str_input is assigned with the above value
So the expression in assign activity is
Str_output = Split(Split(Str_input,”””acce:”””)(1).ToString,”””Code:”””)(0).ToString

Cheers @Madhukumar_M

it is showing me the error that index out of bound

Deserialize that string into a Jobject, And the you can get the requored data by using “acce” as key

here you go with the xaml
hope its resolved
split.zip (10.9 KB)

Cheers @Madhukumar_M

Thank u…its working

1 Like

Fine
to remove the double quotes
str_output = str_output.ToString.Replaces("""","")

note : four double quotes is mentioned in Replace method " " " " like this “”"""

Cheers @Madhukumar_M

Great…its working thank u

1 Like

Cheers @Madhukumar_M

1 Like

Heyyy @Madhukumar_M,

As I see it is a JSON, you will get it dynamic from the server or through any other source, so its better to use, deserialize JSON, then simply the required value you can get using

jsonObject.Item(“acce”).tostring

yes…it is json…I will check it