The problem with that is if the EmonESP (or what ever the other end is) starts up after the EmonTX it will miss the name string
I am not sure there is any reason why you could not use the same setup just would mean that the emonhub service would need to be updated to read the JSON like output of the EmonTX.
The EmonESP posts all the values (to EmonCMS) in one request so I would assume this is no different than passing as CSV if not I would think it should not be to hard to ‘fix’ to ensure processing in the order passed. That being said I have not looked at the EmoCMS code
MQTT is a different case, I am not sure there is a way to post multiple values at the same time, EmonESP certainly posts one value at a time, but the order is very consistent and in the order they are in the string sent from the EmonTX.
You have however highlighted a potential issue in the processing of my inputs that I will need to look at
While I do agree with you that there does need to be some consistency I personally would like to see the move to something like (proper) JSON rather than the OEM specific strings that all the current transports use. This would make it extremely easy to say directly read the EmonTX output directly in to Node-RED for example.