Well, faculty_json
is already json, because it is created by the json serializer. So I don't understand why you are then dumping it again to JSON in the return statement. That will simply double-encode the quotes, so Javascript now sees it as a string rather than an actual JSON object.
Remove that json.dumps
and all should be fine.