Payload codec compatibility with InfluxDB


I am using InfluxDB integration with my Loraserver. With Cayenne Lpp, it works well. If I switch to my own payload, the InfluxDB receives no values.

How should I write the codec, so that the influxdb could store the values just like with cayenne lpp codec?
Is there a required structure? I used normal json return value for the codec output:
{"value1":4, "value3":5}

take a look of this: