--- parser3/tests/253.html 2017/02/09 19:54:38 1.8 +++ parser3/tests/253.html 2024/10/02 20:06:47 1.10 @@ -3,26 +3,28 @@ $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; $.array[hash] ]]} -$o[^json:parse[$s][ $.object[$hook] $.distinct[first] ]] -^print[$o] +^try-catch{$o[^json:parse[$s; $.depth(2) ]]} -$o[^json:parse[$s][ $.double(false) $.distinct[last] ]] -^print[$o] +^try-catch{$o[^json:parse[$s; $.distinct[bug] ]]} -$o[^json:parse[$s][ $.int(false) $.distinct[last] ]] -^print[$o] +^test[$s][ $.object[$hook] $.distinct[first] ] -$o[^json:parse[$s][ $.object[$hook_key] $.distinct[all] ]] -^print[$o] +^test[$s][ $.double(false) $.distinct[last] ] + +^test[$s][ $.int(false) $.distinct[last] ] + +^test[$s][ $.object[$hook_key] $.distinct[all] ] $s[[1,{"type":"class1","value":"3"},4]] -$o[^json:parse[$s][ $.object[$hook] ]] -^print[$o] +^test[$s][ $.object[$hook] ] + +^test[$s] -$o[^json:parse[$s]] +@test[s;options] +$o[^json:parse[$s][ $options $.array[hash] ]] ^print[$o] @print[hash]