in reply to Re^2: Can I prevent JSON encode from converting values
in thread Can I prevent JSON encode from converting values

I'm on 2.32 and get { "5.0": "5.0" }.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^4: Can I prevent JSON encode from converting values
by somekindafreak (Acolyte) on Jul 20, 2012 at 23:16 UTC
    I did get this working in another perl env that has an updated version of JSON. Glad it is just a necessary rev. My JSON.pm is actually 2.21 with JSON::XS saying 2.29. In another location with 2.27 it does work perfectly. I will press for an update and manage until then. thanks everyone