I\'m having problems with the method JSONObject sayJSONHello().
JSONObject sayJSONHello()
@Path(\"/hello\") public class SimplyHello { @GET @Produces(MediaType.A
Instead of -
result.put("numbers", numbers);
you can try (I haven't tested this though)
result.put(numbers);
Or iterate through the array "numbers" and put each one individually into the "result".