YUI.Use(new String[]{"dataschema-array"}, new YUICallback() {
@Override
public void ready(final YuiContext Y) {
//create some json data using JsArr and JSObject - this data is commonly returned by the server in json
JsArr data_in = JsArr.create(
JsObject.one("make", "Chevrolet")._("model", "Bel Air")._("year", 1957),
JsObject.one("make", "Dodge")._("model", "Dart")._("year", 1964),
JsObject.one("make", "Ford")._("model", "Mustang")._("year", 1968)
);
Schema schema = Schema.create().resultFields(new Field[]{