Use simplejson and, if fail, just standard json.