added ability to set field exclusion policies for json serialization

allows you to do things such as skip serialization of fields you cannot access as they are in a superclass.  cc @dralves