added some debugging help to json encoded reg form