Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Duplicate
-
2.4.5
-
None
-
None
Description
JsonBuilder (and underlying JsonOutput ) is writing entries with null values when serializing to Json String:
{"key1": "value", "key2": null}
There should be a flag or configuration value to change this behaviour and skip writing entries where the values are null.
{"key1": "value"}
Attachments
Issue Links
- duplicates
-
GROOVY-7780 JSONBuilder/JSONSlurper: Option to Only Include NonNull values
- Open
- links to