There Pimatic in some function like this? I do not install unnecessary additional module.
https://www.npmjs.com/package/flat
-
Flatten object
Pimatic = Smart Home
-
@wutu Not as far as I am aware of.
The code required to flatten/unflatten an object is fairly minimal. If you don’t want to use a 3rd-party package you possibly can write your own helper function, see http://stackoverflow.com/questions/19098797/fastest-way-to-flatten-un-flatten-nested-json-objects on the matter.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig Thanks for the advice, I used the flat module.
Pimatic = Smart Home