Use stdlib json where possible for Django 1.5+ compat.