エンティティの型指定されていないコレクションがあり、JSONSimple を使用して JSON 文字列に変換したいと考えています。
私は次のような JSONObject で試しました:
Collection entities; //supose its a non-typed Collection returned from service.
JSONObject colJSON = new JSONObject();
colJSON.put("entities",entities);
JSONValue.toJSONString(colJSON);
ただし、コレクションの要素ではなく、コレクションの toString() メソッドを返すだけです。