Pixel-Composer/scripts/json_functions/json_functions.gml
2023-05-08 10:50:42 +02:00

9 lines
126 B
Plaintext

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