JSON formatter removes leading zeros if content of element is convertable to 
number
-----------------------------------------------------------------------------------

                 Key: AXIS2-4994
                 URL: https://issues.apache.org/jira/browse/AXIS2-4994
             Project: Axis2
          Issue Type: Bug
    Affects Versions: 1.5.4
            Reporter: Miyuru Wanninayaka


Default behavior when processing elements in jettison library is, it checks 
whether element is convertable to a number and if so it parses value of element 
as a number. So 00582 will become 582 in JSON message with is wrong in point of 
message formatter. To fix that we need to replace TypeConverter from 
org.codehaus.jettison.mapped.DefaultConverter to 
org.codehaus.jettison.mapped.SimpleConverter

Also setting explicit TypeConverter supports from jettison 1.1, So update 
jettison version from 1.0-RC2 to 1.1

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to