I am getting the following exception
The client code is
The controller is
In the debugger the controller is working fine.
Initially I had the same problem returning an ArrayList, so I changed the code to return an array. Currently I want to return a
String; I will represent every object by a JSON string and I will write the JSON strings in the return String separated by new lines '\n'. I still don't see a way to convert
Java objects to JSON strings and how to construct Java objects from JSON Strings.