def json_data(self, instance, default=None):
value = self.get(instance)<EOL>if not value:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>if callable(value):<EOL><INDENT>value = value()<EOL><DEDENT>return api.to_iso_date(value, default=default)<EOL>
Get a JSON compatible value