Java tutorial
//package com.java2s; //License from project: Open Source License import org.json.JSONException; import org.json.JSONObject; import android.util.Log; public class Main { public static JSONObject readJSON(String contentFile) { try { // Parse the JSON JSONObject jso = new JSONObject(contentFile); return jso; } catch (JSONException e) { Log.e("JSO reading", "Error parsing a JSO file : " + e.getMessage()); } return null; } }