Was trying to import survey via remote api using java but encountered the following error during execution:
{"id":null,"result":null,"error":"unable to decode malformed json"}
Using the following method:
post.setEntity( new StringEntity("{\"method\": \"import_survey\", \"params\": [\""+sessionKey+"\", \"" +readXML()+ "\", \"lss\", \"20170906_TEST1\", \"999999\"], \"id\": 1}"));
I tried importing the lss file via gui and was successful.
Do we need to filter any special characters in the lss file generated from lime?
readXML() ? This don't update the xml readed ? You must send untouched xml.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.