emit REST calls with json payloads