we are upgrading our web app to use Facebook\'s Graph API, which returns JSON responses. However we don\'t want to add dependecy to a JSON library unless we have no other ch
I think what you are looking for is the org.json package. You can get the source here and simply include the handful of files in your project, it doesn't have any dependencies. This will allows you do create and parse JSON. The javadocs are well done and can be found here.
As an example, for consuming json, you can use a tokener and convert the raw string to a JSONObject. Then you can access the arrays by index or by key. You can access nested arrays by getting them as a JSONObject or JSONArray.
JSONTokener tokener = new JSONTokener(myJsonString);
JSONObject json = new JSONObject(tokener);
String error = json.get("error");
int errorCode = json.getInt("error_code");
JSONArray messages = json.getJsonArray("messages");
Update: The source is also available at GitHub