This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$httpParamSerializerJQLike serializing differently than jQuery.param #11551
Closed
Description
There's a difference when serializing nested objects:
jQuery.param({ myObject: { prop1: 5, prop2: { propA: 10 } } })
produces
myObject%5Bprop1%5D=5&myObject%5Bprop2%5D%5BpropA%5D=10
While $httpParamSerializerJQLike
produces
myObject%5Bprop1%5D=5&myObject%5Bprop2%5D=%7B%22propA%22:10%7D
ASP.NET Web API
understands jQuery.param
but not $httpParamSerializerJQLike
.
BTW, thanks for adding this feature, @pkozlowski-opensource! 😃