You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using qs to parse our url for advanced queries I came across an issue where we get varying/expected or desired results when we provide the same parent key one as string and the other intended to be an object. The example will clear things up.
ljharb
changed the title
qs.parse (with alowDots ) provided with the same key object and strings gives varying results
qs.parse (with allowDots) provided with the same key object and strings gives varying results
Feb 9, 2016
When using qs to parse our url for advanced queries I came across an issue where we get varying/expected or desired results when we provide the same parent key one as string and the other intended to be an object. The example will clear things up.
which is as expected, however if we reverse the order
order shouldn't matter. Once again
Solution
keep the results consistent and use the object array notation in each of the cases
The text was updated successfully, but these errors were encountered: