title: Read PHP toString'd object in nodejs
body: <p>Is there a convenient nodeJS parsing library or function to reverse a string which was generated via toString() in PHP?</p>
  <p>For example I generate the string in PHP:</p>
  <pre><code>O:8:&quot;MyObject&quot;:1:{s:7:&quot;*name&quot;;s:2:&quot;JJ&quot;;}
  </code></pre>
  <p>(stolen from <a href="https://stackoverflow.com/questions/2469222/how-to-convert-object-into-string-in-php/2469269#:%7E:text=You%20can%20tailor%20how%20your,included%20and%20the%20string%20format.">this</a> example)</p>
  <p>Now I'd like to reverse the operation in nodeJS to get a object back looking like:</p>
  <pre><code>{
    &quot;name&quot;: &quot;JJ&quot;
  }
  </code></pre>