Skip to main content
October 13, 2021
Question

Web API POST Method issue

  • October 13, 2021
  • 5 replies
  • 0 views

Hi, 

i am trying to send data to Data base using Web API POST method. but, i am receiving below error.

below screen shot, that refers to giving data in JSON format.

could you please explain why i am getting that error message.

    5 replies

    stefanhelzle0001
    Brainy
    October 13, 2021

    The quotes in your JSON string look weird. Please make sure these are just simple quotes " but not typographic quotes.

    practicaltypography.com/straight-and-curly-quotes.html

    October 13, 2021

    Thanks it works.. fine. i did not noticed that actually. 

    October 13, 2021

    Hi,

    where and how are you calling the body?

    Can you provide the code.

    e.g.:

    processParameters: a!fromJson(
    http!request.body
    ),

    Regards,

    Erik

    October 13, 2021

    sorry didn't see the responses.