The result of JSONWithPadding is missing the semicolon in the end:
JSONWithPadding jsonWithPadding = new JSONWithPadding({"key":"value"}, "cb");
return Response.status(200).entity(jsonWithPadding).build();
Expected:
cb({"key":"value"}); --> with semicolon
Actual:
cb({"key":"value"}) --> without semicolon
Any ideas?