Topic was automatically imported from the old Question2Answer platform.
Asked By
kpk-i710
trying to learn how to work with json, you can write an example of how to output each element from such a json array separately to the list as I look at some complex examples I can not figure it out
first made a photo in the table attached
then attached the photo to json
how can I display it in a loop, for example, in buttons in via gdscript
in 1 button
1 samsung i710 2012
2 button
2 nokia n73 2013
3 button
3 siemens name 2014
Once you have your json file you need to parse it. As you parse it you can associate the values of each key to a button with variables or metadata. Then you need to manually connect the button signal “pressed” so you can pass this variable/metadata as an argument and finally a function would print every key of the dictionary in the variable/metadata.