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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, if you simply do:
you’ll get an array of arrays…
Another way would be to use:
That will give you a json object with
earningsas indexes…If that’s not what you want, then you need to specify how you want your result to look…