Skip to Content
0
May 06, 2020 at 07:29 AM

rest web service json format

220 Views

Hello.

I declared:

var result = WebServiceUtilities.ExecuteRESTService (ScenarioName, ServiceName, HttpMethod, HttpResource, URLParameter, HeaderParameter, ContentType, Body);

After that, i declared it as result.content to get the value.

However, the data type of the value was string. I want to import it in json format (data type). Please tell me how.

My content value is

: {"result": "Y", "level": 6, "complete": true, "trackingDetails": [{"time": 1587718730000, "timeString": "2020-04-24 17: 58:50 "," code ": null," where ":" Medium (large) "," kind ":" Collection "," telno ":" 031-577-7520 "," telno2 ":" "," remark ": null," level ": 2," manName ":" "," manPic ":" "}, {" time ": 1587736081000," timeString ":" 2020-04-24 22:48:01 ", "code": null, "where": "Southeast TTM", "kind": "Shuttle Arrival", "telno": "02-2251-0021", "telno2": "", "remark": null, " level ": 3," manName ":" "," manPic ":" "}]," zipCode ": null," completeYN ":" Y "}.

I would like to declare the 'timeString', 'where', and 'kind' values of 'trackingDetails' in separate variables here.

Thank you.