ljharb/qs

stringify, request supporting 'dot' as option for arrayFormat

開放

#516 建立於 2024年11月1日

 (3 則留言) (0 個反應) (0 位負責人)JavaScript (911 個分叉)batch import
feature requesthelp wantedstringify

倉庫指標

星標
 (8,943 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南