You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Denis Stepanov (JIRA)" <ji...@apache.org> on 2011/09/23 18:44:32 UTC

[jira] [Commented] (TAP5-1654) Support null as JSONObject value

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

Denis Stepanov commented on TAP5-1654:
--------------------------------------

Why just not to add simple "if" to replace null with JSONObject.NULL in the put method? Now every nullable object must have additional nullcheck and some users like me get confused.

> Support null as JSONObject value
> --------------------------------
>
>                 Key: TAP5-1654
>                 URL: https://issues.apache.org/jira/browse/TAP5-1654
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-json
>            Reporter: Denis Stepanov
>            Assignee: Howard M. Lewis Ship
>
> List of possible values (json.org): 
> string
> number
> object
> array
> true
> false
> null
> now org.apache.tapestry5.json.JSONObject.printValue throws NPE

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira