Q:

Save ColdFusion Form data in Serialized JSON

On the submit of my ColdFusion form I want to save the values entered into the inputs into Serialized JSON.  
Below is an example I was provided from a previous question.  The code below is in my action.cfm page that is set as the action page of my form.  
<cfset formCopy = Duplicate(form)>
<!---  We have to duplicate the struct so that we can safely modify a copy without affecting the original --->
<cfset DeleteItems = "fieldnames,gobtn">
<cfloop list="#deleteItems#" index="df">
  <cfset formCopy = StructDelete(formCopy,df)>
</cfloop>

<cfset ForDBInsert = SerializeJSON(formCopy)>
<!---  ForDBInsert now contains a JSON serialized copy of your data.  You can insert it into
  the database as such, and call it back later. --- >

If I strip everything out and just leave the duplicate(form) my page still errors.  
QUESTION: Do I need to reference my form by name or just "form"? 

A:

my page still errors.  

That does not tell us much.  You need to post the actual error message.  However, I suspect it is because you are using StructDelete incorrectly.  StructDelete returns a boolean value, not a structure.  By saving the result to "formCopy", you are overwriting the structure with a simple boolean.  The next time you pass it into StructDelete, an error occurs, because "formCopy" is no longer a structure.