how can i create the empty json object in python,data = json.loads(request.POST['mydata']) if 'mydata' in request.POST else {}