[jQuery] how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

[jQuery] how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

<div> I use $.SortSerialize('MDEExportedList').hash.replace('[]','')</div>
<div>  but only the first one is replaced.</div>
<div>  Who can help me?</div>