Help with command line switch

I am trying to setup a raspberry pi garage door controller. I am using this tutorial github.com. Its up and working but I am having trouble trying to figure out how to interact with it through home assistant. At the moment I am trying a command line switch, but I need help trying to parse the json reply. I get this:
{“timestamp”: 1485458846, “update”: [[“garage”, “open”, 1485456074.182389]]}
when I use the address ‘http://IP_ADDRESS:PORT/upd?id=Main’.
When I use ‘http://IP_ADDRESS:PORT/clk?id=Main’ I get a response of OK. What would the value_template for these responses look like?