JSON Interop Using JSNI

This example application demonstrates a simple approach to interoperating with services that return their output in JSON format. It uses GWT's JavaScript Native Interface (JSNI) to analyze a JSON response and create Java-accessible objects. The JSON classes in this sample are general-purpose and can be reused in other projects if you find them useful.

When you click the "Search" button below, you can browse the cached results of a Yahoo JSON image search for "potato." The response is parsed into Java objects which are used to populate a tree view below.

JSON Response Tree View