Added json and xml examples to documentation