title: Creating a Json object variable in JS/REACT
body: <p>I'm creating a react App that will periodically fetch Json Objects from an URL and display its content. 
  (example of an url i'm using: <a href="http://demo0046512.mockable.io/stream/anycontent" rel="nofollow noreferrer">http://demo0046512.mockable.io/stream/anycontent</a> ).</p>
  
  <p>To increase flexibility to my project I want it to be able to display content when offline as well.</p>
  
  <p>For that reason, when I first fetch for the <strong>urls</strong> in that Json object, I want to store their <strong>content</strong> to be able to acess it later, as the urls won't have any use when i'm offline.</p>
  
  <p>To store the data I'm using <a href="https://localforage.github.io/localForage/" rel="nofollow noreferrer">localforage Api</a> and my Idea was to <strong>create a Json Object</strong> just like the one I fetched, but every <code>url</code> would be replaced by it's content (text/image/video itself) and then store it with <code>localForage</code> to read from it when <strong>offline</strong>, but I haven't found a way to do that so far.</p>
  
  <p>For instance: {ex1 : "<a href="https://video.com" rel="nofollow noreferrer">https://video.com</a>"} would be stored as {ex2: videoItself}</p>
  
  <p>Can this be done? </p>
  
  <p>Code for anyone interested (Ctrl + f and type " /*!! " for the problem)</p>
  
  <p><a href="https://pastebin.com/AagzuGmx" rel="nofollow noreferrer">https://pastebin.com/AagzuGmx</a></p>