Update github-hooks to parse json