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

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -