I have a string like
{"key":{"key":val,"key":{"key":val}}}
It holds a multi dimension array in string form, used to pass data to a java script.
I want to read it into php. The string above should convert to
array('key'=>array('key'=>val,key=>array('key'=>'val')))
I am hoping someone recognizes the data format and can point me to some existing source code I can use to read it into PHP. The string is a value out of a XML file originally. If need be I will write my own function for it if one does not already exist.