JSON Parsing to multiple TextView : <p>I have problem with parsing my JSON Object to multiple textview.</p>

<p>I have a TextView1, TextView2 and TextView3.</p>

<p>I would like to download data from: "max", "min" and "average" and synch data with .settext in TextView1, TextView2 and TextView3</p>

<p>My JSON looks: <em>{"max":15.6,"min":14.05,"average":14.55}</em></p>

<p>My code below:</p>

<pre><code>public class JSONTask extends AsyncTask&lt;String, String, String&gt; {

    @Override
    protected String doInBackground(String... params) {
        HttpURLConnection connection = null;
        BufferedReader reader = null;
        try {
            URL url = new URL(params[0]);
            connection = (HttpURLConnection) url.openConnection();
            connection.connect();
            Log.d("Login attempt", connection.toString());
            InputStream stream = connection.getInputStream();

            reader = new BufferedReader(new InputStreamReader(stream));

            StringBuffer buffer = new StringBuffer();

            String line = "";
            while ((line = reader.readLine()) != null) {
                buffer.append(line);
            }
            String finalJson = buffer.toString();

            JSONObject parentObject = new JSONObject(finalJson);
            String maxPrice = parentObject.getString("max");
            return maxPrice;

        } catch (MalformedURLException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (JSONException e) {
            e.printStackTrace();
        } finally {
            if (connection != null) {
                connection.disconnect();
            }
            try {
                if (reader != null) {
                    reader.close();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return null;
    }
</code></pre>

<p>onPostExecute:</p>

<pre><code>protected void onPostExecute (String result){
        super.onPostExecute(result);
        maxPrice.setText(result);
</code></pre>

<p>I can't add more String and synch in other TextView. That's work only for one TextView. I can't synch multiple TextView. Can you help me?</p>
