Hello,
I want to POST an array of JSON using WebService (REST).
The setting parameters to OD are as follows,
but "Can not deserialize instance of java.util.ArrayList out of START_OBJECT token" error has occurred.
Can I POST an array of JSON?
#Message body
JSON [
{
"firstName" : "value1",
"lastName" : "value2"
},
{
"firstName" : "value3",
"lastName" : "value4"
}
]
#error log
15/04/2019 18:27:05:613 INFO - 77CACB9265FFB89B91EA10362241620B:/TestPost : Starting REST web service operation [testPost_WebService]
15/04/2019 18:27:05:645 DEBUG - 77CACB9265FFB89B91EA10362241620B:/TestPost : Web Service Request ->
http://localhost:8080/greet-webapi/resource/testpost
15/04/2019 18:27:05:651 INFO - 77CACB9265FFB89B91EA10362241620B:/TestPost : Response had content type: text/plain. Retrying call with new type...
15/04/2019 18:27:05:651 DEBUG - 77CACB9265FFB89B91EA10362241620B:/TestPost : Storing [Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@fd233c; line: 1, column: 1]] to: Return
15/04/2019 18:27:05:651 DEBUG - 77CACB9265FFB89B91EA10362241620B:/TestPost : Web Service Reply <- Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@fd233c; line: 1, column: 1]
15/04/2019 18:27:05:651 DEBUG - 77CACB9265FFB89B91EA10362241620B:/TestPost : session id:sess9777673 | TestPost:untitledData1 | | Return : Can not deserialize instance of java.util.ArrayList out of START_OBJECT token
at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@fd233c; line: 1, column: 1]
15/04/2019 18:27:05:651 INFO - 77CACB9265FFB89B91EA10362241620B:/TestPost : Using SCESession 77CACB9265FFB89B91EA10362241620B:/TestPost servlet : End
15/04/2019 18:27:05:712 DEBUG - 77CACB9265FFB89B91EA10362241620B:/TestPost : *** Reply for [/TestPost/End] ***
Thank you.