def json_data(self, instance, default={}):
value = self.get(instance)<EOL>if not value:<EOL><INDENT>return default<EOL><DEDENT>if self.multi_valued:<EOL><INDENT>out = map(api.get_url_info, value)<EOL><DEDENT>else:<EOL><INDENT>out = value<EOL><DEDENT>return out or default<EOL>
Get a JSON compatible value