Last week I received a rather interesting message from a GWT user, asking if it was possible to return a top level JSONArray from JSONView instead of a top level JSONObject, because it seems that in some cases GWT expects the data to be contained in an array and not an object. I thought that adding a flag would be enough, but maven's transitive dependency management (I have a strong love/hate relationship with maven, more love than hate) complicated things a little bit, hence the recent JsTester release.

The good news is that all problems are solved now and the flag has been added, just remember to call setForceTopLevelArray on the view before you render the JSON output and you are in business. You may download the jar file from Json-lib's download page.

Feedback is always appreciated.


Your Option (Login or Post by anonymous)