Json parsing with attribute from sensor

json adress: http://192.168.1.111/ps4/.ps4-games.json

{
    "CUSA00001": {
        "locked": false,
        "media_content_type": null,
        "media_image_url": null,
        "media_title": "THE PLAYROOM"
    },
    "CUSA05221": {
        "locked": false,
        "media_content_type": "game",
        "media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/AT/de/19/EP2025-CUSA05221_00-TRIONTROVE000000/1579396909000/image",
        "media_title": "Trove"
    },
    "CUSA07669": {
        "locked": false,
        "media_content_type": "game",
        "media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/AT/de/19/EP1464-CUSA07669_00-FORTNITETESTING1/1579396856000/image",
        "media_title": "Fortnite"
    },
    "CUSA09539": {
        "locked": false,
        "media_content_type": "game",
        "media_image_url": "https://store.playstation.com/store/api/chihiro/00_09_000/container/AT/de/19/EP2526-CUSA09539_00-RECROOM000000001/1579396867000/image",
        "media_title": "Rec Room"
    },
    "NPXS20118": {
        "locked": false,
        "media_content_type": null,
        "media_image_url": null,
        "media_title": "Share Play"
    }
}

and now it gets tricky, from these sensor {{states.media_player.playstation_4.attributes.media_content_id}} attributes I always want to read the “media_image_url”.

The goal is that of every game that is running that json “media_image_url” wants to read and that changes with the sensor {{states.media_player.playstation_4.attributes.media_content_id}}.

How can I do that?

(sorry for my bad english)

this is not working

  - platform: rest
    resource: 'http://192.168.1.111/ps4/.ps4-games.json'
    name: PS4 Cover Bild
    value_template: '{{states.media_player.playstation_4.attributes["media_content_id"]}}'
    json_attributes:
      - media_image_url