json parsing error in Springboot

We Are Going To Discuss About json parsing error in Springboot. So lets Start this Java Article.

json parsing error in Springboot

Advertisements
  1. json parsing error in Springboot

    Incase if you are using Postman client to test your Rest API, there are chances wherein you must be adding body in under tab “form-data” rather “raw”.

  2. json parsing error in Springboot

    Incase if you are using Postman client to test your Rest API, there are chances wherein you must be adding body in under tab “form-data” rather “raw”.

Solution 1

Advertisements

Incase if you are using Postman client to test your Rest API, there are chances wherein you must be adding body in under tab “form-data” rather “raw”.

Original Author Kundan Atre Of This Content

Solution 2

Advertisements

You send incorrect request. Use curl -X POST localhost:8090/one -H 'content-type: application/json;charset=UTF-8' -H 'name: test' -H 'postman-token: 8e87369d-e2e2-ab25-eadd-f40f0682e593' -d '{"name":"Roopesh", "no":"123123"}'

  1. Don’t sent demoEntity=. Body should contains just json itself.
  2. Use -d key to send data. -F is for multipart body. It is a little bit different.

Original Author invenit Of This Content

Conclusion

Advertisements

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

Advertisements
Siddharth

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment