sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Peltier (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SLING-3368) Simplify JSONObject and JSONArray access
Date Wed, 05 Feb 2014 09:28:10 GMT

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

Nicolas Peltier edited comment on SLING-3368 at 2/5/14 9:27 AM:
----------------------------------------------------------------

proposed new patch 
- both JSONArray & JSONObject implement Adaptable
- kept Iterable implementation for JSONArray for different use cases
- makes immutable the returned values
- added some basic tests


was (Author: npeltier):
proposed path for adaptTo: 
- kept Iterable for JSONArray for different use cases
- makes immutable the returned values
- added some basic tests

> Simplify JSONObject and JSONArray access
> ----------------------------------------
>
>                 Key: SLING-3368
>                 URL: https://issues.apache.org/jira/browse/SLING-3368
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons
>            Reporter: Nicolas Peltier
>            Priority: Minor
>         Attachments: [json]_add_JSONArray_adaptTo(List_class),_JSONObject_adaptTo(Map_class),_iterable_JSONArra.patch,
[json]_add_other_ways_to_use_JSONArray_and_JSONObject.patch
>
>
> Map JSONObject.toMap and JSONArray implementing Iterable allows better usage of those
classes.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message