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

I have JSON::XS version 2.29. Perhaps I should downgrade? Actually I am developing for a static perl environment that I can't touch either way.
  • Comment on Re^2: Can I prevent JSON encode from converting values

Replies are listed 'Best First'.
Re^3: Can I prevent JSON encode from converting values
by tobyink (Canon) on Jul 20, 2012 at 22:57 UTC

    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'
      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