Support runtime configuration of JSON feature.
Here is current proposal of notations:
JsonOptions opts = JsonOptions.withEmpty()
.includes(meta.key, meta.name)
.alias(meta.name, "personName")
.coder(meta.name, CustomCoder.class);
String json = ModelMeta.modelToJson(model, opts);
or
JsonOptions opts = JsonOptions.withAll()
.excludes(meta.age);
Original issue reported on code.google.com by takao.nakaguchi on 26 Apr 2011 at 1:28
Original issue reported on code.google.com by
takao.nakaguchi
on 26 Apr 2011 at 1:28