|
|
more tests for full array and json code coverage
@main[]
$h[
$.a[$.b[c]]
$.object[^my::create[]]
]
^json:string[$h;
$.indent(true)
$.my[$handler]
]
^json:string[$h;
$.indent(true)
]
$x[^xdoc::create{<?xml version="1.0"?><r><t z="1"/></r>}]
^json:string[$x.documentElement; $.skip-unknown(true) ]
^try-catch{ ^json:string[$x.documentElement] }
@handler[k;v;p]
{
$p.indent "o":"at key $k, with ^p._count[] options",
$p.indent "h":^json:string[$v.h;$.indent[$p.indent ]]
$p.indent}
@CLASS
my
@create[]
$o[placeholder]
$h[ $.a[b] $.c[d] ]