java - jax.ws.rs.Response Does Not return all JSON -


I'm thinking that there is some type of internal border for the depth of a JSON object that is jax.ws

I have an invoice object in which an object is included, and so on, up to approximately 4 levels.

When I use the level object in the top-debugger, as I expected when I use the GSOn to make a JSON string, it is just like I expect.

But the feedback builder is stopping at the third level. I have tried the @Produces (MediaType.APPLICATION_JSON annotation), but it does not matter.

  if (InvoiceDetail! = Null) {res.setInvoiceDetail (InvoiceDetail); // & lt; - Feeling fine string s = new gsn () ToJson (InvoiceDetail); System.out.println (s); // & lt; - looks OK) Response. (Rez, MediaType .APPLICATION_JSON) .build (); // & lt; - only 3 levels  


Comments