Directory

← Back

JsonContainer

Make your Table speak JSON

Author

Rating

Popularity

<100

Simple Vaadin Container implementation that reads data in JSON format to populate the Container. The add-on works with Vaadin 6 and Vaadin 7 (tested with 7.0.0.rc2).

IMPORTANT! This add-on depends on the Google GSON 2.1 library. Maven users will get the dependency resolved automatically, but without Maven you should download the library and add to your project. See the download link on the sidebar.

Sample code

String json = "{ \"name\" : \"Teemu Tester\", \"age\" : 31 }";

// Use the factory method of JsonContainer to instantiate the
// data source for the table.
JsonContainer dataSource = JsonContainer.Factory.newInstance(json);
table.setContainerDataSource(dataSource);

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2012-03-17
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 6.6+
Vaadin 7.0+
Browser
Browser Independent

Vaadin Add-on Directory

Find open-source widgets, add-ons, themes, and integrations for your Vaadin application. Vaadin Add-on Directory
The channel for finding, promoting, and distributing Vaadin add-ons.
Online