putting things into json form format from appointmenttype submission
not sure if it will generate a form correctly, still need to test that,
but the insertion seems to work fine