I have an issue which is probably easy to solve, but I am not seeing the solution...
excerpt of the json file:
{
"screens": {
"main": {
"name": "BuildScreen",
"border": 0,
"popup": false,
"buttons": {
"num0": {
"caption": "0",
"displayposition": "center",
},
"info": {
"caption": "More|Info",
"displayposition": "center",
}
}
},
I want to iterate through my buttons. In my test-setup I created:
memo3.text := j.FindPath('screens.main.buttons').Items[iFieldNr].AsJSon;
This gets me all the data needed, except of the ID of the buttons ("num0" and "info" respectively)
I cannot find the way to retrieve this key. So my hope is on the community here. Hope any of you can help me out here.
[Edited to add code tags - please see
How to use The Forum.]