What could be the possible reason of the kind of error m getting. Is that org.json dependency is a mandatory thing to be added. I think since I am not passing data in Json format that might not be the cause.
What else can I check to make this work.
Can you pls hit your servlet on aem server and look at the logs. make sure you pass correct query parameter when hititng the servlet
Generally it should show throw some error if servlet is not resolved or not registered correctly in servlet