I developed an application in angular which contain forms. And sent the data in the form of json using http post, and want to read those values in servlets and display. Can anyone please suggest me the solution.
onSubmit() {
let enteredDetails = {
ename: this.name,
email: this.email,
phoneNo: this.phoneNo
}
let contactDetails = JSON.stringify(enteredDetails);
this.http.post('http://localhost:8080/registerationapp/ins', contactDetails);
The json object that is created is in this form. {"ename":"vardhan","email":"abcd@gmail.com","phoneNo":"9876543210"}