0

I am fiddling around with p5 and javascript data i/o. I have an array of objects that have complex structures and functions encapsulated inside. (Like my_object.parents is another array full of the exact kind of the my_object). I am trying to implement a save as json and load from that json mechanic to my project. But when i load a json, it is recognized as an generic(?) object. So my encapsulated functions fail to work. I tried to create a a temporary object and than copy the values into it but it is a pain in the arse when we have recursive arrays. Is there an easier way to cast/parse or just solve this problem.

gp_sflover
  • 3,460
  • 5
  • 38
  • 48

0 Answers0