Guillaume Laforge created GROOVY-11167:
------------------------------------------

             Summary: JsonOutput should handle Records like POGOs
                 Key: GROOVY-11167
                 URL: https://issues.apache.org/jira/browse/GROOVY-11167
             Project: Groovy
          Issue Type: Improvement
          Components: JSON
    Affects Versions: 3.0.19, 4.0.14
            Reporter: Guillaume Laforge


The following assertion fails:

 
{code:java}
import groovy.json.JsonOutput
record Person(String name) {}
assert JsonOutput.toJson([new Person('Guillaume')]) == 
'[{"name":"Guillaume"}]'{code}
 

All records are serialized 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to