Get atribute out of state


I get these value’s from mqtt (room assistant) and i would like to use the distance value,
is there a way to get this value out of the state and put it in another sensor or something?
This is what I get:


Thanks in andvance

Perhaps the MQTT Sensor meets your requirements.

  - platform: mqtt
    name: "My distance sensor"
    state_topic: my/topic/whatever
    value_template: "{{ value_json.distance }}"