title: name property of object, javascript
body: <p>i have a question regarding name property of object, so here is a situation:
  im creating custom object (called Notka) with prototype.constructor and with some methods also added with prototype, then im pushing it into array of objects, then converting array into json object and saving it on external server. So far so good.</p>
  
  <p>When im getting it from external server as json and converting it to array of objects name property of object is lost and im getting anonymous object that dont recognize their methods. I have a few ideas to avoid converting arrays to objects and viceversa and to avoid all this mess but im asking out of curiosity, is there a way to preserve name of object or to change name of anonymous object.</p>
  
  <p>I tried creating new object of my custom type, like:</p>
  
  <pre><code>var nt = new Notka(); // my custom object
  nt = tab[index]; // tab is a array containing objects fetched from external sever
  </code></pre>
  
  <p>but it does not work, newly created Notka has constructor.name Notka but when ill assign object i have anonymous object again.</p>
  
  <p>thank You in advance for any answer :)</p>
  
  <p>Kuba </p>