If you provided several samples of dynamic content, we could find an elegant solution. I do not see any problems with the dynamic use of various solutions, including mine. Perhaps the device returns an incorrect data format, but then it is a question to who created this format.