google-code-export / slim3

Automatically exported from code.google.com/p/slim3
1 stars 1 forks source link

Support runtime configuration of JSON feature. #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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