go ahead... be a heretic | |
PerlMonks |
Re^5: Int becomes String when I convert to jsonby choroba (Cardinal) |
on May 10, 2022 at 20:18 UTC ( [id://11143757]=note: print w/replies, xml ) | Need Help?? |
You also need to
Its encode_json takes the extra parameter, the ::Type module just exports the types' names. BTW, is usually written so you can easily add more parameters if needed without having to move the parenthesis around.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.
In Section
Seekers of Perl Wisdom
|
|