return {
json => {
type => 'application/json',
exporter => [ 'JSON', pretty => 1 ],
docs => 'http://json.org/',
},
sgi> and query via unAPI:
curl 'localhost:5000'
curl 'localhost:5000?id=1204.0492&format=json'
=head1 CONFIGURATION
=over
=item query
Code reference with a query method to get an item (as
default only
JSON and YAML are configured as following:
json => {
type => 'application/json',
exporter => [ 'JSON', pretty => 1 ],
docs => 'http://json.org/'
}