Hey, so I don't know if there is a way to parse it before it gets to the Platform, if that is what you are asking. You should be able to accomplish this, though, if you map a property to receive the full string, and then create a data change event for that property which parses the string and updates the other properties. I hope this helps!
I have mapped the property and it is receiving the full string, however when using the data change event it does not transfer the data over to the new property. I am using sample code I found through this community that is described to resolve the issue I am having. I have also changed the new property's base type to Number
var array = JSON.parse("[" +me.BRIGHTNESS+ "]")
logger.info("Value: " + array.val);
logger.info("TypeID: " + array.hm_addr);
me.BRIGHTNESS_VALUE = parseFloat(array.val);
Again, any feedback would be much appreciated.
I just resolved the string issue and it is now coming in as its original JSON form after re-configuring my gateway. However I am still having the data change issue where I can not extract the value needed for my property. I am using the data changed event subscription and my line reads as:
me.Temperature1 = me.temp.temp1;
I have also changed the Run Time Instance for the Thing Template so that I have access to property write but it is still not transferring the data between the two topics. I have also incorporated a screen shot below of the property window.