Android - ParseQuery fails : bad JSON response - can't convert String to JSONObject
<p>I've been trying to figure out what I'm doing wrong here. I'm getting Course (a custom type) objects stored online using Parse. When I try to run my app I get a Java i/o error:  </p>

<p>bad JSON respsonse : invalid type java.lang.String cannot be converted to JSONObject</p>

<p>here is my oncreate() for my main activity: </p>

<pre><code>    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);

    listView = (ListView) findViewById(R.id.listView1);
    addButton = (Button) findViewById(R.id.addButton);

    getParseData();
    courseAdapter = new CourseListAdapter(this);
    listView.setAdapter(courseAdapter);

    addButton.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {


            //start second activity where course will be added
            startSecond();

        }

    });
}

private void getParseData() {

    ParseQuery query = new ParseQuery("Course");
    query.orderByDescending("createdAt");

    query.findInBackground(new FindCallback() {

        @Override
        public void done(List&lt;ParseObject&gt; objects, ParseException e) {
            // TODO Auto-generated method stub
            if (e == null) {

                ArrayList&lt;Course&gt; retrieved = new ArrayList&lt;Course&gt;();
                Log.d("test", "Retrieved " + objects.size() + " Course objects");

                for(ParseObject object: objects) {      
                    Course newCourse = new Course(object.getString("Title"),
                                                  object.getString("Catalog"),
                                                  object.getInt("Capacity"));

                    retrieved.add(newCourse);
                }

                courseAdapter.setData(retrieved);
                courseAdapter.notifyDataSetChanged();

            }
            else {
                Log.d("test", "Error when getting data: " + e.getMessage());
            }
        }

    });
}
</code></pre>

<p>Would love some help. Thanks!</p>
