support converting json and xml