allow posting json to some endpoint