You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/04/24 21:42:30 UTC

[jira] Assigned: (SLING-942) Have JSONArray.getJSONObject(int) construct JSONObject if value is String

     [ https://issues.apache.org/jira/browse/SLING-942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-942:
---------------------------------------

    Assignee: Felix Meschberger

> Have JSONArray.getJSONObject(int) construct JSONObject if value is String
> -------------------------------------------------------------------------
>
>                 Key: SLING-942
>                 URL: https://issues.apache.org/jira/browse/SLING-942
>             Project: Sling
>          Issue Type: Improvement
>          Components: Commons JSON
>    Affects Versions: Commons JSON 2.0.2, Commons JSON 2.0.4
>            Reporter: Carl Hall
>            Assignee: Felix Meschberger
>         Attachments: sling-942.diff
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> JSONArray.getJSONObject(int) current checks for JSONObject and throws an exception if instanceof fails.  I discovered this after excepting to get back a JSONObject from this but debugging showed that the value was a JSON String.  This functionality could be enhanced by checking for String and converting to a JSONObject if possible.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.