title: Pass Image path from JSON in react
body: <p>I have a image in image folder, i want to pass the path to the image tag through a json file. how to achieve this?</p>
  
  <p>My Json file (serviceDetails):</p>
  
  <pre><code>[{
      "id": 1,
      "ServiceImage": "../assets/images/officeCleaning.jpg",
  }]
  </code></pre>
  
  <p>Image tag in My Component:</p>
  
  <pre><code>&lt;img src={require({serviceDetails.ServiceImage})} /&gt;
  </code></pre>