Dojo expects the json response to be wrapped in html like this:
<html><head></head><body><textarea style="width: 100%%; height: 100px;">{name: value, name2: value2}</textarea></body></html>
The other issue is that the JSONObject balks at the "byte" type of uploaded file data.
I solved that by making the parameters returned by the service (which also contains the input parameters)
valid for the output parameters defined by the service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@573023 13f79535-47bb-0310-9956-ffa450edef68