Fix `import json` for Python 2.6/2.7, though this bug only shows on Django 1.7 which only supports Python 2.7.
Merge pull request #479 from joncotton/pr356_followup

Fix `import json` for Django 1.7