Trouble Parsing JSON Response in Android
<p>i am having a little trouble Parsing a Json response and was hoping i could get some help..</p>

<p>JSon String - null{"ErrorMessage":"","IsSuccess":true,"ReturnValue":2}</p>

<p>Code Example</p>

<pre><code>private static String ParseUserResponse(String JsonResponse)
{
    String toReturn =null;

    System.out.println(JsonResponse);
    try
    {
        JSONObject jsonObj = new JSONObject().getJSONObject(JsonResponse);

        System.out.println(jsonObj.getString("IsSuccess"));
        System.out.println(jsonObj.getString("ReturnValue"));
    }
    catch (Exception e)
    {
        // TODO: Email Exception
        e.printStackTrace();
    }
    return (null);
}
</code></pre>

<p>i have verifed that the data is getting to this method, but it always blows up and throws the following exception</p>

<p><strong>09:06.826: INFO/System.out(526): null{"ErrorMessage":"","IsSuccess":true,"ReturnValue":2}
05-20 00:09:06.836: WARN/System.err(526): org.json.JSONException: No value for null{"ErrorMessage":"","IsSuccess":true,"ReturnValue":2}
05-20 00:09:06.856: WARN/System.err(526): at org.json.JSONObject.get(JSONObject.java:354)
05-20 00:09:06.866: WARN/System.err(526): at org.json.JSONObject.getJSONObject(JSONObject.java:569)
05-20 00:09:06.866: WARN/System.err(526): at com.company.program.class.ParseUserResponse(myclass.java:84)
05-20 00:09:06.876: WARN/System.err(526): at com.company.program.class.isRealUser(myclass.java:57)</strong></p>

<p>i am working with Android 4.0 SDK if that makes a diffrence.. any advice is greatly appreciated.</p>
