Added to_json for commit hook payload dump