I have an ordinary scala class not a case class with many member variables including Buffers, Lists etc.
I want to override the toString method of the class to give a json-string just like javascript's json.stringify() does.
Is this possible with json4s? Because the only examples i have seen so far are for case classes.
If possible what happens to member variables which are empty for eg: an empty list?
I don't think i can use case classes because i perform a lot of state change operations on the member variables using methods. And i remember reading some-where not to use case classes if i want mutable members.
Thanks,