Code json and xml