Add param function to serialize object data