Json Response


Badge +1

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?


2 replies

Userlevel 5
Badge +14

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+(?=",)

205936_pastedImage_1.png

Badge +1

Worked , Thank you 

Reply