Re: How do i view json data returned from django

2012-03-01 Thread Bill Freeman
On Thu, Mar 1, 2012 at 8:29 AM, Shawn Milochik wrote: > On 03/01/2012 07:48 AM, Stanwin Siow wrote: >> >> Hello, >> >> I want to view the actual json data from django view, is there anyway i >> can do that before i parse it into jQuery? >> > > > Assuming that you have a dictionary named "return_da

Re: How do i view json data returned from django

2012-03-01 Thread Shawn Milochik
On 03/01/2012 07:48 AM, Stanwin Siow wrote: Hello, I want to view the actual json data from django view, is there anyway i can do that before i parse it into jQuery? Assuming that you have a dictionary named "return_data," this will do it: return HttpResponse(simplejson.dumps(return_data),

How do i view json data returned from django

2012-03-01 Thread Stanwin Siow
Hello, I want to view the actual json data from django view, is there anyway i can do that before i parse it into jQuery? Below are my two methods def refresh_list(request): if request.method == 'POST': if 'name_input2' in request.POST: username = request.POST['nam