I am developing a rest client that fetched data from YouTube using their API. When a REST request is completed I am putting the data in a Memory Table component and then make it display in a grid.
The REST request etc. works fine, I am getting data back, however, the data that is set in items (field snippet) is JSON encoded and obvious shows as JSON encoded string in the grid (column snippet).
Is there a way so I can display the data as expected, hence get the data that is stored inside items -> snippets to display in the grid or memory table?
One way I could think of is to go trough the memory table, parse the data and insert it into another memory table to display the data correctly...but I think there must be an easier way to do it.
Below a screenshot from the REST Debugger, the data is displayed the same in the grid / memory table. What I would need is to get the data from the snippet column to display correctly in the grid / memory table.
To process the REST request I am using the standard Delphi components such as RESTClient, RESTRequest, RESTResponse, etc.
I've tried to change the root element to snippets and items/snippets but these give an error saying something in the line that it can not be added because it does not exist as a root element.