This is the JSON response I'm getting from the server:

```
 const response = {
   status: "OK",
   data: {
     qr_code_string: "/ AFFFFABRRRQAUUUUAFFFFAB",
     image_url: "http://s3.amazonaws.com/rapgenius/filepicker%2FvCleswcKTpuRXKptjOPo_kitten.jpg",
     qr_code: "serse",
     expiry_time: "05-16-2019 10:05:34"
   }
 };

```

I need to display this JSON response in a formatted way which I achieve like this:

```
JSON.stringify(response, null, 4)

```

Now the requirement is to render the `image_url` in an image tag and display rest in JSON.

I was wondering if I could achieve this using a regular expression.

Edit: I'd like to also mention that regardless of the response structure, it could be an array of objects or a nested object. Either by identifying an image url through regex or by identifying the value of the key `image_url`, I'd like to achieve this.