I have two questions. 1) How to save complex JSON from Payload to Device State simply 2) What is the best way to store device state as JSON and if MongoDB is the best fit for it
- I save device current state to Device State node as Individual Fields. Such approach requires a lot of Copy/Pasting activity and increases a chance for typos. I know that there are two other input options to set a device state called “JSON Template” that seems to be taking only manual entry values and “Payload Path” that seems to be taking only linear (n-1 depth) payload JSON. It does not seem to be handy for storing JSON-complex states of devices and moreover extracting it for processing later on.
Could you correct me please if I am missing some functionality of those input methods for a Device State node?
- It seems that Mongo DB is one the best alternatives for storing complex JSON device states. Is it correct? Are there any additional convenient approaches within losant to do it?