I actually converted my pojo data into json string this way,
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
String json=gson.toJson(user);
I got the json string but that is not the format i actually need, i got
json = {"userID":300,"userName":"asd","password":"s","enabled":1}
So, I want to convert Json string with key-value pair as below ,
{"userID":300,"userName":"asd","password":"s","enabled":1}
into Json string with only value (without key) as below
[300,"asd","s",1]