I need to pass an object that I can convert using $.parseJSON. The query looks like this:
cursor.execute("SELECT earnings, date FROM table")
What do I need to do from here in order to pass an HttpResponse object that can be converted into json?