mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 15:06:22 +01:00
8 lines
No EOL
117 B
Text
8 lines
No EOL
117 B
Text
function json_try_parse(text, def = noone) {
|
|
try
|
|
return json_parse(text);
|
|
catch(e)
|
|
return def;
|
|
|
|
return def;
|
|
} |