mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-09-21 12:52:43 +02:00
8 lines
117 B
Plaintext
8 lines
117 B
Plaintext
|
function json_try_parse(text, def = noone) {
|
||
|
try
|
||
|
return json_parse(text);
|
||
|
catch(e)
|
||
|
return def;
|
||
|
|
||
|
return def;
|
||
|
}
|