Utilities to assist with sending and handling jsend responses