この関数に渡される JSONObject に値を追加しようとしています。問題は、キーで追加しようとすると、含まれないことです。その文字列表現を印刷すると、識別子キーは含まれません。
残りの機能は正常に動作します。if ステートメントが実行され、識別子に値が含まれます。null ではありません。アイデアをいただければ幸いです。
public String issueWebRequest(String path, JSONObject array, boolean boolIdentifier){
HttpClient client = new DefaultHttpClient();
HttpPost post = new HttpPost(url);
try {
if(boolIdentifier){
array.put("identifier", identifier);
}
StringEntity se = new StringEntity(array.toString());