mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-30 17:06:27 +01:00
9 lines
No EOL
123 B
Text
9 lines
No EOL
123 B
Text
function json_try_parse(text, def = {}) {
|
|
try {
|
|
return json_parse(text);
|
|
} catch(e) {
|
|
return def;
|
|
}
|
|
|
|
return def;
|
|
} |