File:  [parser3project] / parser3 / tests / 287.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Oct 2 20:06:47 2024 UTC (20 months, 1 week ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
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] ]

E-mail: