Pixel-Composer/scripts/json_functions/json_functions.gml
2023-03-05 13:16:44 +07:00

8 lines
No EOL
117 B
Text

function json_try_parse(text, def = noone) {
try
return json_parse(text);
catch(e)
return def;
return def;
}