Jup, seems that way. JSON::XS is great for that stuff.
... use JSON::XS ... my $encoded = encode_json \%output; ... [download]
In reply to Re^2: Returning data by cavac in thread Returning data by frank1