Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf committed Aug 27, 2015
1 parent 906b994 commit 0f82035
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var str = Qs.stringify(obj); // 'a=c'
Qs.parse(string, [options]);
```

**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`, or prefixing the sub-key with a dot `.`.
**qs** allows you to create nested objects within your query strings, by surrounding the name of sub-keys with square brackets `[]`.
For example, the string `'foo[bar]=baz'` converts to:

```javascript
Expand Down Expand Up @@ -118,11 +118,11 @@ Qs.parse('a=b;c=d,e=f', { delimiter: /[;,]/ });
// { a: 'b', c: 'd', e: 'f' }
```

Option `allowDots` can be used to disable dot notation:
Option `allowDots` can be used to enable dot notation:

```javascript
Qs.parse('a.b=c', { allowDots: false });
// { 'a.b': 'c' } }
Qs.parse('a.b=c', { allowDots: true });
// { a: { b: 'c' } }
```

### Parsing Arrays
Expand Down

0 comments on commit 0f82035

Please sign in to comment.