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

ASF GitHub Bot commented on GROOVY-7858:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/groovy/pull/433


> Make JsonBuilder configurable to not write entries with null values
> -------------------------------------------------------------------
>
>                 Key: GROOVY-7858
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7858
>             Project: Groovy
>          Issue Type: Improvement
>          Components: JSON
>    Affects Versions: 2.4.5
>            Reporter: Marcus Lagemann
>            Assignee: John Wagenleitner
>            Priority: Trivial
>
> {{JsonBuilder}} (and underlying {{JsonOutput}} ) is writing entries with null 
> values when serializing to Json String:
> {code:javascript}
>  {"key1": "value",
>   "key2": null}
> {code}
> There should be a flag or configuration value to change this behaviour and 
> skip writing entries where the values are null.
> {code:javascript}
>  {"key1": "value"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to