switched simplejson to json, compatibility with django 1.6 (with retro-compatibility)