私は実際にこの方法で pojo データを json 文字列に変換しました。
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
String json=gson.toJson(user);
json 文字列を取得しましたが、それは実際に必要な形式ではありません。
json = {"userID":300,"userName":"asd","password":"s","enabled":1}
したがって、以下のようにキーと値のペアでJson文字列を変換したいのですが、
{"userID":300,"userName":"asd","password":"s","enabled":1}
以下のように値のみ(キーなし)のJson文字列に
[300,"asd","s",1]