def json_data(self, name):
<EOL>if not self.can_write():<EOL><INDENT>raise Unauthorized("<STR_LIT>")<EOL><DEDENT>field = api.get_field(self.context, name)<EOL>if not field:<EOL><INDENT>return None<EOL><DEDENT>fieldmanager = IFieldManager(field)<EOL>return fieldmanager.json_data(self.context)<EOL>
Get a JSON compatible structure for the named attribute