asyrjasalo / RESTinstance

Robot Framework library for RESTful JSON APIs
https://asyrjasalo.github.io/RESTinstance
GNU Lesser General Public License v3.0
203 stars 84 forks source link

Does POST keyword support serialized json string as 'body' or 'data' ? #135

Closed Soravit-Saiwong closed 1 year ago

Soravit-Saiwong commented 1 year ago

I've been playing around with the POST keyword. It's working wonderfully when the payload is an object/dictionary or a json file. However some REST API only accepts a serialized json string as payload, and when attempting to send such data type, the keyword raises an error.

raise RuntimeError("Input is not valid JSON: %s" % (value))

The JSON string that I'm describing: https://www.w3schools.com/js/js_json_objects.asp

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.