Store crlf seperated query to object

How can I store a string of key/value pairs, seperated by line returns into an object in jquery/js?

(Sagepay response object)

VPSProtocol=3 Status=OK StatusDetail=0000 : The Authorisation was Successful. VPSTxId={xxxxxxxxx}

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.