This is attempt to take the logic of form operations out of code and into a JSON format.