Added support json and xml for books service