Polymer Web Component for transforming data of different data formats to JSON