(self)
return form_json
Returns the JSON representation of the form XML
Returns the JSON representation of the form XML
Returns the JSON representation of the form XML
def form_data(self):
        """Returns the JSON representation of the form XML"""
        from couchforms import XMLSyntaxError
        from .utils import convert_xform_to_json, adjust_datetimes
        from corehq.form_processor.utils.metadata import scrub_form_meta
        xml = self.get_xml()
        try:
            form_json = convert_xform_to_json(xml)
        except XMLSyntaxError:
            return {}
        adjust_datetimes(form_json)

        scrub_form_meta(self.form_id, form_json)
        return form_json
def form_data ( self ) : from couchforms import XMLSyntaxError from . utils import convert_xform_to_json , adjust_datetimes from corehq . form_processor . utils . metadata import scrub_form_meta xml = self . get_xml ( ) try : form_json = convert_xform_to_json ( xml ) except XMLSyntaxError : return { } adjust_datetimes ( form_json ) scrub_form_meta ( self . form_id , form_json ) return form_json