Move logic for json to Hook struct to gobucket