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