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/15 14:54:09 UTC
[jira] [Created] (TAP5-1654) Support null as JSONObject value
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
List of possible values (json.org):
string
number
object
array
true
false
null
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TAP5-1654) Support null as JSONObject value
Posted by "Denis Stepanov (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Closed] (TAP5-1654) Support null as JSONObject value
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1654.
--------------------------------------
Resolution: Invalid
Assignee: Howard M. Lewis Ship
Use the constant JSONObject.NULL to represent a JSON null.
> 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
[jira] [Updated] (TAP5-1654) Support null as JSONObject value
Posted by "Denis Stepanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Stepanov updated TAP5-1654:
---------------------------------
Description:
List of possible values (json.org):
string
number
object
array
true
false
null
now org.apache.tapestry5.json.JSONObject.printValue throws NPE
was:
List of possible values (json.org):
string
number
object
array
true
false
null
> 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
>
> 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
[jira] [Updated] (TAP5-1654) Support null as JSONObject value
Posted by "Denis Stepanov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Stepanov updated TAP5-1654:
---------------------------------
Description:
List of possible values (json.org):
string
number
object
array
true
false
null
now org.apache.tapestry5.json.JSONObject.printValue throws NPE
was:
List of possible values (json.org):
string
number
object
array
true
false
null
> 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
>
> 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
[jira] [Closed] (TAP5-1654) Support null as JSONObject value
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-1654.
--------------------------------------
Resolution: Invalid
Assignee: Howard M. Lewis Ship
Use the constant JSONObject.NULL to represent a JSON null.
> 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
[jira] [Commented] (TAP5-1654) Support null as JSONObject value
Posted by "Denis Stepanov (JIRA)" <ji...@apache.org>.
[ 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