I have been using processingjs .. I need to serialize the objects it has created .. I have developed a custom way of doing this , by storing it in arrays and then using JQuery Plugin to serialize arrays . Now I dont know how to actually stringify the object reference to store in the array .. How do I stringify the object reference ? What are my other ways of serialization?