Remove all the "Deprecated" warnings

Json Methods like getJsonFactory() and createJsonParser() are deprecated and it is suggested to use getFactory and createParser instead.