bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
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}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: quote in json
by marto (Cardinal) on May 08, 2015 at 14:56 UTC | |
|
Re: quote in json
by edimusrex (Monk) on May 08, 2015 at 14:55 UTC | |
|
Re: quote in json
by QM (Parson) on May 11, 2015 at 10:54 UTC | |
by locked_user sundialsvc4 (Abbot) on May 11, 2015 at 11:19 UTC |