[Dancer-users] formatting curl output

Puneet Kishor punk.kish at gmail.com
Sun Feb 27 04:31:18 CET 2011


punkish at Lucknow ~$curl 'http://dm.local/dm.json?var=prcp&from=1980-1-1&to=1980-2-2'
{
 "prcp" : [
0,
1,
1,
0,
..
]
}

Is there a way to get that curl output to be more compact, like so

{"prcp": [0,1,1,0, .. ]}


On the server side all I am doing is 

return {'prcp' => \@vals};

-- 
Puneet Kishor 





More information about the Dancer-users mailing list