Extract value from json

This is eerily familiar:

The string is coming from here:

  - platform: rest
    resource: http://192.168.1.44/api.cgi?cmd=GetMdState&user=admin&password=xxxxx
    name: motion_test

@pnbruckner @petro feel free to weigh in.