diff --git a/README.md b/README.md index e4ada026..f6bf1a1d 100644 --- a/README.md +++ b/README.md @@ -435,7 +435,9 @@ qs.stringify({ a: { b: { c: 'd', e: 'f' } } }, { allowDots: true }); ``` You may encode the dot notation in the keys of object with option `encodeDotInKeys` by setting it to `true` -Note: it only works with `allowDots` being set to `true`: +Notes: +1. it only works with `allowDots` being set to `true` +2. when `encodeValuesOnly` is provided with `encodeDotInKeys`, it would only encode dots in keys and nothing else. ```javascript qs.stringify({ "name.obj": { "first": "John", "last": "Doe" } }, { allowDots: true, encodeDotInKeys: true }) // 'name%252Eobj.first=John&name%252Eobj.last=Doe'