ljharb/qs
Object with array containing object and scalars is not parsed correctly.
開放
#197 建立於 2017年2月9日
bughelp wantedparse
倉庫指標
- 星標
- (8,943 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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 ] }