My error log has sent me an email which includes a big array of data, which was stored in the users session. This array SHOULD have been converted to a JSON encoded string and stored in my database but something has gone wrong. If I have the data as a text string, what is the quickest way to convert back to JSON and save back to my database. Here is an example of SOME of the data from the array. Remember: I have this as a text string an en email, not as an actual array. The content in the email has the <pre>
tags surrounding it.
[customer_firstname] => James
[customer_lastname] => Smith
[customer_address1] =>
[customer_postcode] => AB12CD
[customer_address2] =>
[customer_address3] =>
[customer_address4] =>
[customer_town] => London
[customer_county] =>
[customer_country] => UK