title: Woocommerce JSON API
body: <p>I have a problem with woocommerce rest api. I want to create a product with photos via rest api, but it works only without photos.</p>
  
  <p>This snippet of code work:</p>
  
  <p>{
      "regular_price": "21.99",
      "name": "Premium Quality",
      "description": "Pellentesque habitant morbi tristique senectus et netus",
      "type": "simple"
  }</p>
  
  <p>but this doesn't work:</p>
  
  <p>{
      "regular_price": "21.99",
      "images": "[{\"src\":\"<a href="https://static01.nyt.com/images/2017/03/17/world/europe/oakImage-1489777706390/oakImage-1489777706390-largeHorizontal375.jpg" rel="nofollow noreferrer">https://static01.nyt.com/images/2017/03/17/world/europe/oakImage-1489777706390/oakImage-1489777706390-largeHorizontal375.jpg</a>\",\"position\":0,\"id\":0}]",
      "name": "Premium Quality",
      "description": "Pellentesque habitant morbi tristique senectus et netus",
      "type": "simple"
  }</p>
  
  <p>The JSON is validate. The response from the server is:</p>
  
  <p>{
      "code": "woocommerce_product_invalid_image_id",
      "message": "#0 is an invalid image ID.",
      "data": {
          "status": 400
      }
  }</p>