fixed json/xml serilaizatin