make hook POST request return JSON