Spring: Return JSON response From A Java Bean
I'm new to springs and I wondering if I can return the contents of a Java
Bean as a JSON response. Basically, I would have a class XYZ,
public class XYZ {
private String name,
private String email,
//Setters and getters...
}
I was wondering if I can get a response which has
{name: 'Something', email: 'something@somethingelse.com'}
without any manual processing. Thanks in advance!
No comments:
Post a Comment