You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Aleksandr Mashchenko (JIRA)" <ji...@apache.org> on 2015/03/12 18:12:38 UTC

[jira] [Commented] (WW-4474) JSON plugin breaks sort order for LinkedHashMap

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

Aleksandr Mashchenko commented on WW-4474:
------------------------------------------

Javascript objects doesn't guarantee the order of elements. Use an array if you need an order.

> JSON plugin breaks sort order for LinkedHashMap
> -----------------------------------------------
>
>                 Key: WW-4474
>                 URL: https://issues.apache.org/jira/browse/WW-4474
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - JSON
>    Affects Versions: 2.3.20
>         Environment: JBOSS EAP6
>            Reporter: Yuri
>             Fix For: 2.3.x
>
>
> I have LinkedHashMap<String, String>() that I send from action class as a JSON 
> The JSON result I get from URL is map ordered by key. That is not the order I specified. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)