Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.14, 3.0.19
-
None
Description
The following assertion fails:
import groovy.json.JsonOutput record Person(String name) {} assert JsonOutput.toJson([new Person('Guillaume')]) == '[{"name":"Guillaume"}]'
All records are serialised as {}
I would expect records to be serialised as normal POGOs or Maps, etc.
Attachments
Issue Links
- links to