Hi,

Am Donnerstag, den 29.05.2008, 17:16 +0300 schrieb Jukka Zitting:
> Hi,
> 
> On Thu, May 29, 2008 at 5:09 PM, Felix Meschberger <[EMAIL PROTECTED]> wrote:
> > After considering the situation, there is one point inside our
> > refactored JSONObject implementation, which may not be easily resolved
> > using the default library from json.org or the maven repository: Our
> > JSONObject is modified to use a LinkedHashMap internally instead of a
> > plain HashMap in order to guarantee the order amongst the properties of
> > JSONObject's.
> 
> How serious is this? I.e. how much code we have that depends on a
> specific ordering of properties?

One part is the number of uses in Sling: There is just a single one,
which requires the order to be kept: The ContentLoader loading content
from JSON files, should create the content in the order it is stored in
the JSON file.

Another part is the perception of developers here at Day (yes, this is
mainly a Day-only problem, nevertheless, these people are also users of
Sling), who expect the properties of JavaScript objects to have a
defined order; neglecting the fact, that the standard explicitly leaves
the order undefined.

So, unfortunately, the issue is kind of serious.

Regards
Felix

Reply via email to