A lot of our modules start with:
try: import json except ImportError: from django.utils import simplejson as json # Python 2.4 fallback.
I know this was questioned some time ago and is already answered.
But I wanted to add what I usually use:
try: import json assert json # silence pyflakes except ImportError: from django.utils import simplejson as json # Python 2.4 fallback.