ljharb/qs

stringify, request supporting 'dot' as option for arrayFormat

Open

#516 aperta il 1 nov 2024

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (744 fork)batch import
feature requesthelp wantedstringify

Metriche repository

Star
 (8015 star)
Metriche merge PR
 (Merge medio 6g 22h) (2 PR mergiate in 30 g)

Descrizione

parse can successfully convert 'a.0.name=test&a.0.number=5&a.1.name=test2&a.1.number=6' to:

{ a: [ { name: 'test', number: '5'}, { name: 'test2', number: '6' }] }

so it would be great if there were a stringify option that could convert the object back into the original dot notation.

Guida contributor