Help with RESTful Sensor retriev RESTful API history

I want to configure a RESTful sensor to retrieve values from RESTful API.

How do I get the “state” value and “time_last_updated”? I don’t get it!

  - platform: rest
    name: Temp
    value_template: '{{ value_json.[0].[0].state() }}'
      - attributes.time_last_updated
    unit_of_measurement: '*'
      x-ha-access: xxxx
      User-Agent: Home Assistant
      Content-Type: application/json
    scan_interval: 120

Result of

[[{"attributes": {"assumed_state": true, "friendly_name": "Temp", "icon": "mdi:power-plug", "time_last_updated": "2018-01-07 18:24:24", "unit_of_measurement": ""}, "entity_id": "sensor.temperature", "last_changed": "2018-01-07T23:00:00+00:00", "last_updated": "2018-01-07T23:00:00+00:00", "state": "0.1"}, {"attributes": {"assumed_state": true, "friendly_name": "Temp", "icon": "mdi:power-plug", "time_last_updated": "2018-01-07 18:24:24", "unit_of_measurement": ""}, "entity_id": "sensor.temperature", "last_changed": "2018-01-07T23:01:06.597223+00:00", "last_updated": "2018-01-07T23:01:06.597223+00:00", "state": "0.1"}]]

How should i format ‘{{ value_json.[0].[0].state() }}’ and attributes.time_last_updated?