cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar
Sburel
Level IV

Help with retrieving value from argument

Hello,

 

I'm starting to dabble with with connecting JMP and Python.

When I run a small HTTP request (POST) I get the following statement back

 

getstr = ["shortId" => "4bb3c98fb63579f6f1c615b1adcdc8d5", "userListId" => 30913859];

 

I'm trying to find the syntax to retrieve  the value associated with "userListID".

 

Any help would be greatly appreciated.

 

Sebastien

1 ACCEPTED SOLUTION

Accepted Solutions
Thierry_S
Super User

Re: Help with retrieving value from argument

Hi,

 

Based on the limited information you provided, I believe that the following formula should do the trick:

 

Word( -1, getstr, ">]" );

Is that what you were looking for?

Best,

TS

Thierry R. Sornasse

View solution in original post

2 REPLIES 2
Thierry_S
Super User

Re: Help with retrieving value from argument

Hi,

 

Based on the limited information you provided, I believe that the following formula should do the trick:

 

Word( -1, getstr, ">]" );

Is that what you were looking for?

Best,

TS

Thierry R. Sornasse
Sburel
Level IV

Re: Help with retrieving value from argument

@Thierry_S Thanks a lot for the feedback. I tried your suggestion but it did not seem to work but in the mean time I've found alternative:

getstr = ["shortId" => "e966660eeb303dac6e426c00e90c856e", "userListId" => 30915202];

user_list_id = getstr << get value( "userListId" ); // this retrieve the info from the associative array.
Show( user_list_id );