use JSON qw(to_json); $fname = "John"; my %rec_hash = (firstname => $fname); my $json = to_json \%rec_hash; $json =~ s/(.+?\:)\"(\w+)\"/$1$2/g; print "$json\n";
In reply to Re: quote in json
by edimusrex
in thread quote in json
by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |