perl -MJSON -le '$var = "5.0"; print JSON->new->allow_nonref->encode({$var => $var})' {"5.0":"5.0"}