navinkumar
Novice

Json Response

Jump to solution

How can we retrieve specific data from the Json response ?

I want to retrieve  the "WorkorderID" from the below mentioned web request response .

{"operation":{"result":{"status":"Success","message":"Request details added successfully."},"Details":{"WORKORDERID":"516617","REQUESTER":"XXXXXX","CREATEDBY":"XXXXX","CREATEDTIME":"1500922548794","DUEBYTIME":"-1","RESPONSED

 Any help?

0 Kudos
Reply
2 Replies
emha
Collaborator

Re: Json Response

Jump to solution

it's not ideal approach but if the :workorderid" token appears in the response just once you can use regular expression.

I assume you want to pick workorderid value, not the text itself. then following regex could work

(?<="WORKORDERID":")\d+(?=",)

View solution in original post

0 Kudos
Reply
navinkumar
Novice

Re: Json Response

Jump to solution

Worked , Thank you 

Reply