return StringBuffer array
<p>I'm using <code>StringBuffer</code> to send and receive variables from a web service.</p>

<p>My code is:</p>

<blockquote>
<pre><code>// Create connection
            url = new URL(urlSCS + "/login");
            connection = (HttpURLConnection) url.openConnection();
            connection.setRequestMethod("POST");
</code></pre>
</blockquote>

<pre><code>            connection.setRequestProperty("Content-Type",
                    "application/x-www-form-urlencoded");

            connection.setRequestProperty("Content-Length",
                    "" + Integer.toString(urlParameters.getBytes().length));
            connection.setRequestProperty("Content-Language", "pl-PL");

            connection.setUseCaches(false);
            connection.setDoInput(true);
            connection.setDoOutput(true);

            // Send request
            DataOutputStream wr = new DataOutputStream(
                    connection.getOutputStream());
            wr.writeBytes(urlParameters);
            wr.flush();
            wr.close();

            // Get Response
            InputStream is = connection.getInputStream();
            BufferedReader rd = new BufferedReader(new InputStreamReader(is));
            String line;
            StringBuffer response = new StringBuffer();
            while ((line = rd.readLine()) != null) {
                response.append(line);
                response.append('\r');
            }
            rd.close();
</code></pre>

<p>How can I change this code to be able to receive Array instead of String?</p>

<p>The request which I get from the web service is like this:  <code>{"var", "var"}</code>.</p>
