I have a variable object and I want to serialize it. This variable object contains an array of objects. How I can serialize this variable because at the moment when I deserialize this variable to print data into a form, I can't access to the objects in the array of the variable. thanks