title: How to return image URL from web api C#?
body: <p>I'm facing problem in returning image URL from a web api in C#</p>
  
  <p>I have the following code:</p>
  
  <pre><code>  Product[] _products = new Product[]
     {
  
  
          new Product { Id = 1, Name = "AC Split 12K Inverter", Price = "20997 SDG",Image=@"\\192.168.2.113\C$\abc.png" },
          new Product { Id = 2, Name = "AC Split 18K Inverter", Price = "31200 SDG",Image=@"\\192.168.2.113\C$\abz.png" },
          new Product { Id = 3, Name = "AC Split 24K Inverter", Price = "40000 SDG",Image=@"\\192.168.2.113\C$\aby.png" }
     };
  
      public IEnumerable&lt;Product&gt; GetAllProducts()
      {
  
          return _products;
      }
  </code></pre>
  
  <p>but i got the following response</p>
  
  <blockquote>
    <p>[{"Id":1,"Name":"AC Split 12K Inverter","Price":"20997 SDG","Image":"\\\\192.168.2.113\\C$\\abc.png"},{"Id":2,"Name":"AC Split 18K Inverter","Price":"31200 SDG","Image":"\\\\192.168.2.113\\C$\\abz.png"},{"Id":3,"Name":"AC Split 24K Inverter","Price":"40000 SDG","Image":"\\\\192.168.2.113\\C$\\aby.png"}]</p>
  </blockquote>
  
  <p>and i'm consuming the json response from android device using the following code but the image URL i got double \ in it</p>
  
  <pre><code>try {
             // JSONObject jsonObject = new JSONObject(content);
            //  JSONArray jsonArray =  jsonObject.getJSONArray("");
              JSONArray jsonArray = new JSONArray(content);
              for(int i =0;i&lt;jsonArray.length(); i++){
                  JSONObject productObject = jsonArray.getJSONObject(i);
                  arrayList.add(new Products(
                       // productObject.getInt("id"),
                          productObject.getString("Name"),
                          productObject.getString("Price"),
                          productObject.getString("Image")
  
                  ));
              }
          } catch (JSONException e) {
              e.printStackTrace();
          }
  </code></pre>