'Why in Django there is difference between json and formdata

I have someview like below

def SomeView(request):
    someArrayData = request.data.getlist('something', None)

And I am using Postman for testing my endpoints.

When I send array with formdata request.data.getlist works. But when I send array with raw data type application/json getlist not works. Instead of getlist I must use request.data.get. But in ASP.NET there is no difference. I could send via formdata or application/json both works.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source