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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -