How to send custom JSON data to Matamo using Java web app

Hi There,

I have a spring web with restful endpoint that accepts JSON payload.
How can I push this JSON payload to Matomo server.

Not seeing a way to pass custom JSON payload using

Any guidance is much appreciated.