title: Bash script to filter JSON text
body: <p>I have the following JSON File:</p>
  
  <pre><code>{
    "error": 0,
    "data": {
      "0": {
        "orderid": "40007600",
        "price": "9.99",
        "listingname": "iPhone 8",
        "smallphoto": "https://images-eu.ssl-images-amazon.com/images/I/51b5iaLTjgL._SL160_.jpg",
        "photo": "https://images-eu.ssl-images-amazon.com/images/I/51b5iaLTjgL.jpg"
      },
      "1": {
        "orderid": "40007598",
        "price": "9.99",
        "listingname": "iPhone 8 Plus",
        "smallphoto": "https://images-eu.ssl-images-amazon.com/images/I/51CVLqsSNkL._SL160_.jpg",
        "photo": "https://images-eu.ssl-images-amazon.com/images/I/51CVLqsSNkL.jpg"
      },
      "4": {
        "orderid": "40007595",
        "price": "9.39",
        "listingname": "Nadelflaschen",
        "smallphoto": "https://images-eu.ssl-images-amazon.com/images/I/41OHDP2rAeL._SL160_.jpg",
        "photo": "https://images-eu.ssl-images-amazon.com/images/I/41OHDP2rAeL.jpg"
      },
    }
  }
  </code></pre>
  
  <p>How can I filter everything with a bash script, so I get all image URLs of "smallphoto" into a text file?</p>
  
  <p>f.e. <a href="https://images-eu.ssl-images-amazon.com/images/I/41OHDP2rAeL._SL160_.jpg" rel="nofollow noreferrer">https://images-eu.ssl-images-amazon.com/images/I/41OHDP2rAeL.<em>SL160</em>.jpg</a> from "Nadelflaschen"</p>
  
  <p>I tried awk and jq commands. But I am just to dump to understand the jq syntax. </p>
  
  <p>awk is possible, but I only get unfiltered links with backslashes, which do not work.</p>