in my project with .net core 2.2 i use postman to test APIs.
in postman
(1) set content-type: application/json
(2) body => raw & json
and i send simple JavaScript object like this:
{
pageSize : 10,
pageNumber : 0,
sortType : 'nn',
keyword : 'ff',
cityCode : 1,
citySlug : 'f',
priceRange : 'ff',
starRange : 'fff',
hotelFacilityRange : 'fffff',
roomFacilityRange : 'fs',
hotelGroup : 'dss',
hotelType : 'sss',
foodType : 'ss'
}
but yesterday i upgrade to .net core 3.0
and now i must send json string, and doesn't accept simple object.
what is wrong?
when i send simple object i get null in api, but when i convert to json "pageSize" : 10, "pageNumber": 0 ... it works!!!
