-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Json #60
Comments
Jaap, |
I've confirmed that in an attempt to optimize the code, things like renaming the field, converting to a different type, dealing with total values was all done before the json was flattened. I am moving all that logic to after flattening. This will result the input field name being the flattened name. |
* test for renaming nested json this will fail until MQTTSubscribe is fixed * need flatten json before processing renames, conversions and totals see issue #60
Thanks for solving this so soon! |
Jaap, |
Hi Rich,
I'm using MQTTSubcribe now in a 'keyword' configuration. Works great, thanks!
I would like to use it with nested Json messages (Json -not nested- works fine).
But i'm struggeling with the configuration of the nested fields.
What I would like to do:
Input:
{ ..
"gas": {
"totalUse": 2352.545,
"ts": 1588096800
},
..
}
Requested mapping (from MQTT to loop)
gas_totalUse -> gas
gas_ts -> TsGas
I have this mapping:
But I don't get is to work.
mqtt-log1.txt
Regards,
Jaap
The text was updated successfully, but these errors were encountered: