java - JAX-RS JSON Formatting -
i using jax-rs restful web services. in doing serializing object json. problem json contains name
attribute not exist on original object. rid of it. example:
public class testclass { private string var1; private int var2; "getters , setters" }
the json returned, once instantiate, is:
{ "var1": "hello world". "var2": 7 "name": "testclass" }
how rid of name
attribute?
Comments
Post a Comment