ESP32 - Post to Emoncms using ArduinoJson

I am trying to work out how to use ArduinoJson (using Arduino IDE) on my ESP32 to post online to Emoncms, has anyone done anything similar?

The ideal would be to have a variable to store the weblink, another variable to store the API Key, build the Json and then merge them all together to post to the website.

Can anyone point me in the right direction? Thanks

You may check GitHub - openenergymonitor/EmonESP: ESP8266 WIFI serial to emoncms link for some ideas. Or go with with http component HTTP Request — ESPHome

I have started an ESPHome component to send data to emoncms, but it is focused on the TX4. Where is your data coming from and are you sending it to, or a local emoncms setup?

The http component doesn’t readily lend itself to the data format required for emoncms. It needs a Lambda as a minimum.