ljharb/qs
stringify, request supporting 'dot' as option for arrayFormat
Offen
#516 geöffnet am 01.11.2024
feature requesthelp wantedstringify
Repository-Metriken
- Stars
- (8.943 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 22h) (2 gemergte PRs in 30 T)
Beschreibung
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.