mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-15 06:53:59 +01:00
9 lines
123 B
Plaintext
9 lines
123 B
Plaintext
function json_try_parse(text, def = {}) {
|
|
try {
|
|
return json_parse(text);
|
|
} catch(e) {
|
|
return def;
|
|
}
|
|
|
|
return def;
|
|
} |