agent: emit JSON objects from all APIs