updated functions to read proper json objects and deleted unused servlet mapping from web.xml