I had to google and ChatGPT this one, but I have a result. It took a few hours to realise it seems like the “Network Request from URL” action was not handling the request correctly. I resorted to a javascript solution instead:
Ah, my bad. It was a local variable I was using to try something else out. Ignore it, it shouldn’t be there.
ArmourData is initially declared a text, but it becomes a structure when it’s set in the javascript line "fromJSONObject(data)". That’s a neat (and sometimes frustrating) feature of GDevelop - it’s not strongly typed.
The action "ToJSON(ArmoutData)" converts it to a text string.
I was still having hard time to get the file content … I spend hours with ChatGPT, he told me that it may be CORS issues to access the file… I change the hosting of this file to control easily this CORS issue, AND i finally got it !
However… you reach to have the proper output right ? What browser do you use ? (i even reuse the same variable name to be sure i’m doing exactly what you suggest)