--- parser3/tests/253.html 2010/10/01 23:11:24 1.4 +++ parser3/tests/253.html 2017/02/09 19:54:38 1.8 @@ -3,7 +3,7 @@ $f[^file::load[text;253_json.txt; $.charset[windows-1251]]] $s[^taint[as-is][$f.text]] -^try_catch{$o[^json:parse[$s]]} +^try-catch{$o[^json:parse[$s]]} $o[^json:parse[$s][ $.object[$hook] $.distinct[first] ]] ^print[$o] @@ -11,20 +11,23 @@ $o[^json:parse[$s][ $.object[$hook] $.di $o[^json:parse[$s][ $.double(false) $.distinct[last] ]] ^print[$o] +$o[^json:parse[$s][ $.int(false) $.distinct[last] ]] +^print[$o] + $o[^json:parse[$s][ $.object[$hook_key] $.distinct[all] ]] ^print[$o] -@try_catch[code] -^try{ - $code -}{ - $exception.handled(true) - $exception.source - $exception.comment -} +$s[[1,{"type":"class1","value":"3"},4]] + +$o[^json:parse[$s][ $.object[$hook] ]] +^print[$o] + +$o[^json:parse[$s]] +^print[$o] @print[hash] -^json:string[$hash; $.indent(1)] +$result[^json:string[$hash; $.indent(1)]] +$result[^result.replace[e+0;e+]] @hook[key;value] $result[^if(def $value.type){^reflection:create[$value.type;create;$value]}{$value}]