def demo_form_dump_def(self, mt, opts):
        """ generates the JSON representation of a form
        """
        form = Form(mt)
        form.add_prompt(0, 2, 'First name')
        form.add_prompt(0, 4, 'Last name')
        form.add_prompt(30, 23, 'ENVOI')

        form.add_field('fname', 15, 2, 20)
        form.add_field('lname', 15, 4, 20)

        print(form.dump_definition())