cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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 );

Recommended Articles