Deserialize Json as an array/list of results

KripsKrips Member Posts: 4
edited 2018-07-25 in NAV Tips & Tricks
Hi,

I am trying to call a Rest web service, which returns response in the form of a json

"Result": [
{"id":"1", "firstname":"xyz"},
{"id":"2", "firstname":"abc"}
]

I have created a dotnet dll and imported it into navision.
I use the ApiResult := JsonConvert.DeserializeObject(Json,GETDOTNETTYPE(ApiResult)); to deserialize the Json where ApiResult is set to the rootObject.

How can I store the result in an array or list and access it in C/AL?

Answers

Sign In or Register to comment.