ljharb/qs

Object with array containing object and scalars is not parsed correctly.

Open

#197 建立於 2017年2月9日

在 GitHub 查看
 (7 留言) (0 反應) (1 負責人)JavaScript (8,015 star) (744 fork)batch import
bughelp wantedparse

描述

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 ] }

貢獻者指南