I'm just getting familiarized with SurveyJS through sampling the Survey Creator, and trying to understand what the json code is for. I'm still new with all of this, having been able to successfully create a new survey via Python requests.
I am having trouble with the changeJson post request. I've tried a number of different ways to serialize JSON, and have tried both Python and Javascript, and failing with a vague 500 error,
ie, <meta property="og:url" content="https://surveyjs.io/Error/Index?500;https://surveyjsio:80/api/MySurveys/changeJson?accessKey= …
according to the Content body html that comes back in my request - but I cannot see what the error is saying, so I don't know what I'm doing wrong.
I've tried Python's json.dumps(myjson)
<-- a copy paste of a different survey json, ie: Survey A's json editor, trying to go into Survey B which has no question data yet.
I've tried both Python's post request via application/json
as well as application/xml
I've also tried the same thing with Javascript and Json.stringify, only to see no updates made to the survey.
Can you provide an super simple example of what a complete request looks like (especially for the Json string), and what is the "Text" attribute supposed to be for?
Hello,
We will investigate this issue and write back to this thread immediately
Thanks, Alex
SurveyJS Team