Get atribute out of state

Hi

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:

{"distance":2.8,"last_updated_at":"2020-10-28T18:43:37.905Z"}

Thanks in andvance
H

Perhaps the MQTT Sensor meets your requirements.

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