in reply to Re^4: Int becomes String when I convert to json
in thread Int becomes String when I convert to json
Its encode_json takes the extra parameter, the ::Type module just exports the types' names.use Cpanel::JSON::XS;
BTW,
is usually written(my $hashref) = @_;
so you can easily add more parameters if needed without having to move the parenthesis around.my ($hashref) = @_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Int becomes String when I convert to json
by bartender1382 (Beadle) on May 10, 2022 at 23:52 UTC | |
by choroba (Cardinal) on May 11, 2022 at 09:29 UTC |