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))
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