json parser from goThere api start from 2nd object android
<p>I am new to Json Parser. Currently I am trying to retrieve some values from <a href="http://gothere.sg/maps/nav?output=js&amp;client=&amp;sensor=false&amp;of=pt&amp;m=p&amp;f=&amp;q=from%3a%20serangoon%20to%3a%20ang%20mo%20kio&amp;callback=_ac._1h58bl6ik" rel="nofollow">here</a>
. </p>

<p>The returned <code>.js</code> file is not properly indented and start with a <code>string("_ac._1h58bl6ik&amp;&amp;_ac._1h58bl6ik")</code>. I attempted to remove them away by doing this.</p>

<p>// read it and delimit it by using the 1st word(which is Status) and add them back</p>

<pre><code> BufferedReader reader = new BufferedReader(new InputStreamReader(
                    is, "iso-8859-1"), 8);
            StringBuilder sb = new StringBuilder();
            String line = null;
            while ((line = reader.readLine()) != null) {
                sb.append(line + "n");
            }
            is.close();
            json = sb.toString();
            String [] temp=json.split("Status");
            String temp2="{\"Status"   +   temp[1];

            json=temp2.substring(0, temp2.length()-2);
</code></pre>

<p>After executing it, the string look normal and I proceed.</p>

<pre><code>jObj = new JSONObject(json);
</code></pre>

<p>The jObj is a JSONObject. Now I enter the debug mode. It shows it start from what I seems to be the 2nd <code>Jsonobject("Placemark")</code>. What I want from that JSON is the <strong><em>Steps</em></strong>. Which was in the 1st part.</p>

<p>I need to understand this and I spent too long searching for answers.</p>
