use JSON qw(to_json); $fname = "John"; my %rec_hash = (firstname => $fname); my $json = to_json \%rec_hash; print "$json\n";
this is json reponse
{"firstname":"John"}
i want to remove double quote on John
and have response {"firstname":John}
In reply to quote in json by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |