If getting this error make sure you are giving quotation marks to your input passed in the request.
JSON Data -
data={name="John", age=30}
if you are expecting age as a string parameter then it return error saying can not convert the literal '30' to the expected type ‘Edm.String’
to resolve this use below
data={ name="John", age="30"}
in your http request.