Question

How to parse JSON string and assign the JSON value to the property

Hi All,

I would like to achieve something that I could pass the JSON string to activity and I am not sure how can i retreive the key pair of the JSON value from string ?

Kindly advise me. My JSON string is as follow.

{"emailId":"seba@email.com","Userid":"seba"}

Correct Answer
April 3, 2018 - 12:19pm

Hi AungP333,

Thanks for posting on PSC.

Parsing a JSON Payload

- How to convert JSON String to Page?

Hope it answers your question and helps you in implementation. Kindly notify if it does by marking this post as answered for larger Pega audience and tracking purposes.

Regards,

Asif

Comments

Keep up to date on this post and subscribe to comments

Pega
April 2, 2018 - 6:34am

Hi AungP333,

Thanks for posting on PSC.

Parsing a JSON Payload

- How to convert JSON String to Page?

Hope it answers your question and helps you in implementation. Kindly notify if it does by marking this post as answered for larger Pega audience and tracking purposes.

Regards,

Asif

April 19, 2018 - 6:05am
Response to Asif Hasan

Thank you so much for the answer. Now I created my own java activity and import the json library into PEGA to retrieve the values from JSON object.

December 9, 2018 - 6:53pm
Response to AungP333

Hi,

I also have the similar requirement, can you please share what solution is working for you.