﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33424	Jsonfield data being returned as str	nitishxp	nobody	"Hi, 

I encountered a bug in raw postgresql query 


{{{
from django.db.models import JSONField
from django.db import connection

class Job(models.Model): 
    job_dict = JsonField()


def view(request):
       with connection.cursor() as cursor: 
            cursor.execute(""select job_dict from app.job"", ())
            column_names = [desc[0] for desc in cursor.description]
            results = [dict(zip(column_names, row)) for row in cursor.fetchall()]

}}}


The given result will have the job_dict column as string instead of dictionary
           "	Bug	closed	Database layer (models, ORM)	3.2	Normal	duplicate	Database, Django Cursor		Unreviewed	0	0	0	0	0	0
