Update views.py

Fixed simplejson deprecation warning for Django 1.6