adding json and xml views