HF RL Explorer

Task: Handle JSON Data in Django Request

Task: Handle JSON Data in Django Request: a task in Terminal-Lego-15k (Harbor dataset). When sending JSON data to a Django backend via AJAX with Content-Type: application/json , the JSON payload is NOT available in request.POST . This is because Django only populates request.POST for form-encoded…

The task

When sending JSON data to a Django backend via AJAX with `Content-Type: application/json`, the JSON payload is NOT available in `request.POST`. This is because Django only populates `request.POST` for form-encoded data (`application/x-www-form-urlencoded` or `multipart/form-data`).

Part of PrimeIntellect/Terminal-Lego-15k.