|
|
| version 1.3, 2010/09/24 22:56:35 | version 1.8, 2017/02/09 19:54:38 |
|---|---|
| Line 3 | Line 3 |
| $f[^file::load[text;253_json.txt; $.charset[windows-1251]]] | $f[^file::load[text;253_json.txt; $.charset[windows-1251]]] |
| $s[^taint[as-is][$f.text]] | $s[^taint[as-is][$f.text]] |
| ^try_catch{$o[^json:parse[$s]]} | ^try-catch{$o[^json:parse[$s]]} |
| $o[^json:parse[$s][ $.distinct[first] ]] | $o[^json:parse[$s][ $.object[$hook] $.distinct[first] ]] |
| ^print[$o] | ^print[$o] |
| $o[^json:parse[$s][ $.double(false) $.distinct[last] ]] | $o[^json:parse[$s][ $.double(false) $.distinct[last] ]] |
| ^print[$o] | ^print[$o] |
| $o[^json:parse[$s][ $.object[$hook] $.distinct[all] ]] | $o[^json:parse[$s][ $.int(false) $.distinct[last] ]] |
| ^print[$o] | ^print[$o] |
| @try_catch[code] | $o[^json:parse[$s][ $.object[$hook_key] $.distinct[all] ]] |
| ^try{ | ^print[$o] |
| $code | |
| }{ | $s[[1,{"type":"class1","value":"3"},4]] |
| $exception.handled(true) | |
| $exception.source | $o[^json:parse[$s][ $.object[$hook] ]] |
| $exception.comment | ^print[$o] |
| } | |
| $o[^json:parse[$s]] | |
| ^print[$o] | |
| @print[hash] | @print[hash] |
| ^json:string[$hash; $.indent(1)] | $result[^json:string[$hash; $.indent(1)]] |
| $result[^result.replace[e+0;e+]] | |
| @hook[key;value] | @hook[key;value] |
| $result[^if(def $value.type){^reflection:create[$value.type;create;$value]}{$value}] | $result[^if(def $value.type){^reflection:create[$value.type;create;$value]}{$value}] |
| @hook_key[key;value] | |
| $result[^if($key eq 'object'){^reflection:create[$value.type;create;$value]}{$value}] | |
| @CLASS | @CLASS |
| class1 | class1 |