@@ -0,0 +1,2100 @@
+package com.esp.screwesp;%0A%0A/**%0A * Created by hp on 02-Jan-15.%0A */%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.io.UnsupportedEncodingException;%0A%0Aimport org.apache.http.HttpEntity;%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.client.ClientProtocolException;%0Aimport org.apache.http.client.methods.HttpPost;%0Aimport org.apache.http.impl.client.DefaultHttpClient;%0Aimport org.json.JSONException;%0Aimport org.json.JSONObject;%0A%0Aimport android.util.Log;%0A%0Apublic class JsonParser %7B%0A%0A    final String TAG = %22JsonParser.java%22;%0A%0A    static InputStream is = null;%0A    static JSONObject jObj = null;%0A    static String json = %22%22;%0A%0A    public JSONObject getJSONFromUrl(String url) %7B%0A%0A        // make HTTP request%0A        try %7B%0A%0A            DefaultHttpClient httpClient = new DefaultHttpClient();%0A            HttpPost httpPost = new HttpPost(url);%0A%0A            HttpResponse httpResponse = httpClient.execute(httpPost);%0A            HttpEntity httpEntity = httpResponse.getEntity();%0A            is = httpEntity.getContent();%0A%0A        %7D catch (UnsupportedEncodingException e) %7B%0A            e.printStackTrace();%0A        %7D catch (ClientProtocolException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        try %7B%0A%0A            BufferedReader reader = new BufferedReader(new InputStreamReader(is, %22iso-8859-1%22), 8);%0A            StringBuilder sb = new StringBuilder();%0A            String line = null;%0A            while ((line = reader.readLine()) != null) %7B%0A                sb.append(line + %22n%22);%0A            %7D%0A            is.close();%0A            json = sb.toString();%0A%0A        %7D catch (Exception e) %7B%0A            Log.e(TAG, %22Error converting result %22 + e.toString());%0A        %7D%0A%0A        // try parse the string to a JSON object%0A        try %7B%0A            jObj = new JSONObject(json);%0A        %7D catch (JSONException e) %7B%0A            Log.e(TAG, %22Error parsing data %22 + e.toString());%0A        %7D%0A%0A        // return JSON String%0A        return jObj;%0A    %7D%0A%7D%0A

Create JsonParser.java