Add first stab at xml/json conversion.