println 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.
|Field||Original Value||New Value|
|Assignee||Guillaume Laforge [ guillaume ]|
|Fix Version/s||1.8.2 [ 17495 ]|
|Fix Version/s||1.9-beta-2 [ 17494 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
Paul King made changes -
|Status||Resolved [ 5 ]||Closed [ 6 ]|