johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <>
Subject [jira] [Commented] (JOHNZON-167) Order strategy not applied on Map keys
Date Fri, 13 Apr 2018 10:19:00 GMT


Romain Manni-Bucau commented on JOHNZON-167:

[~anthonyC] yes and no, a lot of maps have an order already (including the plain hashmap if
you want to be picky) so it is already sorted in a more specific way than a global config
so it must be respected. And once again, the main point is that the spec is about POJO not
maps. "A Map is a Pojo" is just not true. JSON-B doesn't define the map case here - at least
I didn't find any when we created it and re-reading it neither. You are welcomed to do a PR
to handle Map which are not SortedMap appropriately but the spec doesn't require it.

> Order strategy not applied on Map keys
> --------------------------------------
>                 Key: JOHNZON-167
>                 URL:
>             Project: Johnzon
>          Issue Type: Bug
>          Components: JSON-B
>    Affects Versions: 1.1.7
>            Reporter: Soudeh Raeisi
>            Priority: Major
>         Attachments:
> Order strategy is not applied globally using withPropertyOrderStrategy  method of JsonbConfig

This message was sent by Atlassian JIRA

View raw message