Pixel-Composer/scripts/json_functions/json_functions.gml

8 lines
117 B
Text
Raw Normal View History

2023-03-05 07:16:44 +01:00
function json_try_parse(text, def = noone) {
try
return json_parse(text);
catch(e)
return def;
return def;
}