Polymer Web Component for converting data of different formats to JSON