[ 
https://issues.apache.org/jira/browse/AXIS2-4994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015039#comment-13015039
 ] 

Andreas Veithen commented on AXIS2-4994:
----------------------------------------

Could you also provide a regression test for this issue?

> 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
>         Attachments: AXIS2-4994.diff
>
>
> 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: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to