% use JSON::XS; | |
% if (stash('search.query')) { | |
% state $json = JSON::XS->new->allow_blessed->pretty; | |
<code class="query serial<% if (param('action') eq 'inspect') { %> active<% } %>"> | |
<span>JSON-LD Serialization for <%= param 'q' %> (<%= param 'ql' %>)</span> | |
<pre> | |
<%= $json->encode(stash('search.query')) =%> | |
</pre> | |
</code> | |
% }; |