1

I want to make a search to a row in the database. I put this query in my code

ParseQuery<ParseObject> query_names = ParseQuery.getQuery("PhoneBook");
            query_names.include("Numbers");
            query_names.whereStartsWith("Name", searchString.toLowerCase());
            query_names.setLimit( 20);
            query_names.findInBackground();

I got this exception

com.parse.ParseRequest$ParseRequestException: bad json response

2 Answers2

1

This exception is from the parse version in my buid.gradle i have used a compile like this:

compile 'com.parse:parse-android:1.+'

the best way is to put like this

compile 'com.parse:parse-android:1.12.0'

and it will work correctly

1

I think you might have forgotten the trailing slash like I did. It causes this error.

.server("http://localhost:1337/parse/") // The trailing slash is important.
pseudozach
  • 398
  • 6
  • 14