eclipse-archived / unide

Eclipse Public License 1.0
29 stars 17 forks source link

change request: meassurements.series.$_time #17

Open jwende opened 6 years ago

jwende commented 6 years ago

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

ameinhardt commented 6 years ago

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.)?

jwende commented 6 years ago

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