Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8.0, 1.8.1
-
None
Description
Currently
will outputprintln new JsonBuilder(['a','b','c','d'] as char[]).toString()
since the primitive class char has no properties (other than class).[{},{},{},{}]
My solution is to call toString on the object if there are no properties left. I have attached an updated JsonOutput.groovy and a fixed test.