I am reading a cookie which has a serialized php array stored in it.
The format looks like this:
a:2:{s:8:"firstKey";s:10:"firstValue";s:9:"secondKey";s:11:"secondValue";}
Is there a way to decode this easily to JSON using javascript?
This question was closed due to similarities with another question. This does not answer the question posed here!