title: Unity: Load Image/Sprite on JSON
body: <p>I want to load sprite on json but how ? Text are showing but not the images.</p>
  
  <p>This is the JSON code to load my text data.</p>
  
  <pre><code> private void myLoadGameData() //LOAD THE DATA
  {
      string myfilePath = Path.Combine(Application.streamingAssetsPath, mygameDataFileName); //I THINK THIS IS THE PATH OF THE FILE
  
      if (File.Exists(myfilePath))
      {
  
          string mydataAsJson = File.ReadAllText(myfilePath); // READ THE FILE
          TSGameData myloadedData = JsonUtility.FromJson&lt;TSGameData&gt;(mydataAsJson);  // TSGAME DATA IS A ANOTHER SCRIPT THAT HAVE AN ARRAY FOR THE DATA
          myRoundData = myloadedData.myRoundData;
      } //myRoundData IS A VARIABLE THAT HOLDS THE ARRAY OF TSROUNDDATA TO GET THE DATA
      else
      {
          Debug.LogError("Cannot load game data!");
      }
  }
  </code></pre>
  
  <blockquote>
    <p>Here is my JSON script. I am not really sure if this is a valid script to load image.</p>
  </blockquote>
  
  <pre><code>"questionImage":"Assets/ImagesQuiz/NoentryPlate.png"
  </code></pre>