ljharb/qs
GitHub で見るObject with array containing object and scalars is not parsed correctly.
Open
#197 opened on 2017年2月9日
bughelp wantedparse
Repository metrics
- Stars
- (8,015 stars)
- PR merge metrics
- (平均マージ 6d 22h) (30d で 2 merged PRs)
説明
Client request from any browser $.get('/ajax', {arr: [{foo: 123, bar: 'foo'},2,3] }, ...
On server (node .10, 4.x and 7.x) with latest qs
is parsed as
{ arr: { __0: [{ foo: 123, bar: 'foo', 2: true}, 3] } }
it should be
{ arr: [ {foo: 123, bar: 'foo'}, 2, 3 ] }