I took you at your words ...
... but it doesn't work (okay the huge string is 2230876 characters long):
{
"message": "'No JSON object could be decoded'",
"traceback": [
"File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/Zope-4.1.1-py3.7.egg/ZPublisher/WSGIPublisher.py\", line 155, in transaction_pubevents",
" yield",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/Zope-4.1.1-py3.7.egg/ZPublisher/WSGIPublisher.py\", line 337, in publish_module",
" response = _publish(request, new_mod_info)",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/Zope-4.1.1-py3.7.egg/ZPublisher/WSGIPublisher.py\", line 255, in publish",
" bind=1)",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/Zope-4.1.1-py3.7.egg/ZPublisher/mapply.py\", line 85, in mapply",
" return debug(object, args, context)",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/Zope-4.1.1-py3.7.egg/ZPublisher/WSGIPublisher.py\", line 61, in call_object",
" return obj(*args)",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/plone.rest-1.4.0-py3.7.egg/plone/rest/service.py\", line 23, in __call__",
" return self.render()",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/plone.restapi-4.3.1-py3.7.egg/plone/restapi/services/__init__.py\", line 21, in render",
" content = self.reply()",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/plone.restapi-4.3.1-py3.7.egg/plone/restapi/services/content/add.py\", line 27, in reply",
" data = json_body(self.request)",
"",
" File \"/home/bitouze/test-plone-5-2-python3/buildout-cache/eggs/plone.restapi-4.3.1-py3.7.egg/plone/restapi/deserializer/__init__.py\", line 11, in json_body",
" raise DeserializationError(\"No JSON object could be decoded\")"
],
"type": "DeserializationError"
}
See above. And do you manually copy-paste the huge strings?