fields has some nice properties he would like to preserve, such as to catch common programming errors, e.g. accessing a non-declared object variable (e.g. $p->{a})
His strategy is:
Create objects in perl and dump object content with JSON::XS
Replace fields with another object system that detect access to a non-declared object variable (run-time or compile-time).
Is there an perl object system / framework that supports the above requirements? Moose and Mouse have been considered and fail the last requirement.
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]