title: Saving objects in chrome extension
body: <p>I have been working on this extension and I've come up with a problem. I've tried to use sync and local storage for saving data but always when I close the object disappear. So is there a way to fix my problem or an alternative way to save objects on chrome orI'm stuck with front-end web development.</p>
  <p>here is code if you need</p>
  <pre><code>objekat={
      Opis:opis.value,
      Broj:select.value,
      Tip:tip
  }
  
  chrome.storage.sync.set({objekat},function() {
            console.log('Value is set to ' , objekat);
  });
  
  
  chrome.storage.sync.get(objekat,function(result) {
        console.log('Value currently is ', result.Broj);
      });
  </code></pre>