Closed hodch01 closed 9 years ago
Use getCollection instead, as your service returns a list of objects.
On Wed, Aug 19, 2015 at 1:51 PM, Christopher James Hodges < notifications@github.com> wrote:
Rest Module is not accepting a JSON response starting with a '['
java.lang.RuntimeException: java.lang.IllegalArgumentException: Response body does not seem to be a valid JSON Object. A JSON object starts with '{' but found: [{"identifier": "Fastway", "name": "Fastway"}, {"identifier": "Royal Mail", "name": "Royal Mail"}, {"identifier": "DHL", "name": "DHL"}, {"identifier": "Deutsche Post", "name": "Deutsche Post"}, {"identifier": "PostNL", "name": "PostNL"}, {"identifier": "MRW", "name": "MRW"}, {"identifier": "DX", "name": "DX"}]
— Reply to this email directly or view it on GitHub https://github.com/mendix/RestServices/issues/67.
Thanks :)
Rest Module is not accepting a JSON response starting with a '['
java.lang.RuntimeException: java.lang.IllegalArgumentException: Response body does not seem to be a valid JSON Object. A JSON object starts with '{' but found: [{"identifier": "Fastway", "name": "Fastway"}, {"identifier": "Royal Mail", "name": "Royal Mail"}, {"identifier": "DHL", "name": "DHL"}, {"identifier": "Deutsche Post", "name": "Deutsche Post"}, {"identifier": "PostNL", "name": "PostNL"}, {"identifier": "MRW", "name": "MRW"}, {"identifier": "DX", "name": "DX"}]