Back to project page httpbreeze.
The source code is released under:
GNU General Public License
If you think the Android project httpbreeze listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.http.breeze.rest; //from w w w . j av a 2 s . c o m import org.json.JSONException; import org.json.JSONObject; public class JsonResponseConverter implements HttpResponseConverter<JSONObject>{ private JsonResponseConverter(){ } @Override public JSONObject convertResponse(String httpResponse) { try { return new JSONObject(httpResponse); } catch (JSONException e) { e.printStackTrace(); return null; } } public static JsonResponseConverter newInstance(){ return new JsonResponseConverter(); } }