Nils Diewald | 02df991 | 2014-06-03 16:08:07 +0000 | [diff] [blame] | 1 | % use JSON::XS; |
2 | |||||
3 | % if (stash('search.query')) { | ||||
Nils Diewald | 2329e1d | 2014-06-12 16:07:57 +0000 | [diff] [blame] | 4 | <code class="query serial<% if (param('action') eq 'inspect') { %> active<% } %>"><span>JSON-LD Query for <%= param 'q' %> (<%= param 'ql' %>)</span><pre> |
5 | % my $json = JSON::XS->new->allow_blessed->pretty; | ||||
Nils Diewald | 02df991 | 2014-06-03 16:08:07 +0000 | [diff] [blame] | 6 | %= $json->encode(stash('search.query')) |
7 | </pre></span></code> | ||||
8 | % } |