unide icon indicating copy to clipboard operation
unide copied to clipboard

change request: meassurements.series.$_time

Open jwende opened this issue 8 years ago • 2 comments

Change request: please change the field name to something that can be used for a XML Binding too. Thanks.

jwende avatar Nov 02 '17 12:11 jwende

Transforming json keys directly to xml element names might e.g. also not work for arbitrary measurement names. These names are key (specification) and could be e.g. "min pressure" with blanks. You could use a more verbose transformation like (net.sf.json.xml.XMLSerializer). So I think there's no need to adapt the time field nor would that alone help. What's the objective of transforming json to xml in that case and not directly bind to your native implementation (c, python, etc.)?

ameinhardt avatar Nov 05 '17 11:11 ameinhardt

I'm using a tool currently that's xml-ish - e.g. it uses XPath for navigation and it expects that the format definition follows the XSD rules ...

Thanks Joerg

jwende avatar Nov 05 '17 15:11 jwende