Created
June 6, 2012 23:03
-
-
Save asawilliams/2885370 to your computer and use it in GitHub Desktop.
chnages the format of a serialized object to use dot notation instead of brackets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// params is serialized object | |
params.replace(/%5B([a-zA-Z]+)%5D/g, '.$1'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
$httpParamSerializerJQLike
is stupid, custom function rocks.$.param(object).replace(/%5B([a-zA-Z]+)%5D/g, '.$1');
It's important to transform in Spring MVC.