Convert serialized PHP data to a javascript object graph.