Hello i have output data from sensor and im using a python script to send those data using post method but first i need to converts them to json but can't figure it out.
ex. string is
H2 14199 Ethanol 18151
and i want to convert it to
{
"H2" : "14199",
"Ethanol" : "18151"
}
so i can POST it in json format.
I tried some code on python but im not that much familiar to it.