Differentiate between serializable and non serializable fields with the star operator:

  iod(*name = "test") -> to_json -> {"name": "test"}
  iod(name = "test") -> to_json -> {}

Add methods :

  auto o = iod( age = 12, inc = [] (auto& self, int a) { self.age += a; } );
  o(inc, a);