Please do not return and parse HTML, life is too short.
return HttpResponse(json.dumps({'Customer_id': customer_id...}), mimetype='text/plain', status=200)