If Programable_Matter
Member
I keep getting this Error even though the program successfuly uploaded the JSON key :values
Apparently the code works and the values show up in my program but like 2 seconds later I get this error. I'm pretty sure I'm missing some code
Create Event
http_get("http://webpage.json")
//Declaring Variable
global.OCH1Q1 = ""
HTTP Event
// Get the answer
json = async_load[? "result"];
//Convert Json to ds_map
map = json_decode(json);
if (map == -1)
{
show_message("Invalid")
exit;
}
if (ds_map_exists(map, "quest"))
{
global.OCH1Q1 = map[? "quest"];
}
The code works sucessfully and the values are displayed from the json that I have stored in a server
Unfortunately a few seconds later I get the Error
Any help with tweaking the code would be greatly appreciated to get it to work
Apparently the code works and the values show up in my program but like 2 seconds later I get this error. I'm pretty sure I'm missing some code
Create Event
http_get("http://webpage.json")
//Declaring Variable
global.OCH1Q1 = ""
HTTP Event
// Get the answer
json = async_load[? "result"];
//Convert Json to ds_map
map = json_decode(json);
if (map == -1)
{
show_message("Invalid")
exit;
}
if (ds_map_exists(map, "quest"))
{
global.OCH1Q1 = map[? "quest"];
}
The code works sucessfully and the values are displayed from the json that I have stored in a server
Unfortunately a few seconds later I get the Error
Any help with tweaking the code would be greatly appreciated to get it to work
Attachments
-
20.2 KB Views: 2