1

A field of type "String" does not appear in the result of the serialization controller

result.use(Results.json()).indented().from(list).serialize();

Some fields appear, and another not appear when null, the field I want is to type "String" and implemented the "get" and "sets" and this always filled

PS: I am using vraptor framework

Edgard Leal
  • 2,592
  • 26
  • 30

1 Answers1

1

I solved using the "include":

result.use(Results.json()).indented().from(list)
                .include("codigoComposto").serialize();
Edgard Leal
  • 2,592
  • 26
  • 30