Support returning array and map results from ADOxx based modelling tools
The server currently has troubles when the ADOxx based modelling tool tries to return results that are maps or arrays, even when they are returned as strings and strings escaped with mstr()
. Following the log entries from the modelling tool (first for maps, then for arrays):
[INFO@06/09/2021 10:18:40]: (ASRE) RemoteScript result: {"result": 42, "test": "Just a comment"}
[ERROR@06/09/2021 10:18:40]: (ASRE) Server did not respond with a 2XX code. Returned body: Unexpected character ('r' (code 114)): was expecting comma to separate OBJECT entries at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@2efe9439; line: 1, column: 15]
[INFO@06/09/2021 10:19:01]: (ASRE) RemoteScript result: "{\"result\": 42, \"test\": \"Just a comment\"}"
[ERROR@06/09/2021 10:19:01]: (ASRE) Server did not respond with a 2XX code. Returned body: Unexpected character ('{' (code 123)): was expecting comma to separate OBJECT entries at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@39a4d778; line: 1, column: 14]
[INFO@06/09/2021 10:20:45]: (ASRE) RemoteScript result: {42, "Just a comment"}
[ERROR@06/09/2021 10:20:45]: (ASRE) Server did not respond with a 2XX code. Returned body: Unexpected character ('J' (code 74)): was expecting comma to separate OBJECT entries at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@57ebf119; line: 1, column: 19]
[INFO@06/09/2021 10:21:09]: (ASRE) RemoteScript result: "{42, \"Just a comment\"}"
[ERROR@06/09/2021 10:21:10]: (ASRE) Server did not respond with a 2XX code. Returned body: Unexpected character ('{' (code 123)): was expecting comma to separate OBJECT entries at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@4107494e; line: 1, column: 14]
Edited by Patrik Burzynski