Pixel-Composer/scripts/json_functions/json_functions.gml
2023-06-17 18:59:20 +02:00

9 lines
No EOL
123 B
Text

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