When encoding the payload, make sure that we're using the JSONified version of the object with non-collection encodes; otherwise we'll end up encoding a String as [Object] in web mode.

Also remove the toString() on JsonSplittable; the proper implementation of toString allowed the encoding to work in dev mode but not web mode.

Review at http://gwt-code-reviews.appspot.com/1628803


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10835 8db76d5a-ed1c-0410-87a9-c151d255dfc7
2 files changed