Storing large JS objects in JSON?

jic's icon

I'm working on a project that makes heavy use of very large JS objects. I'd prefer to write these to JSON for saving/loading projects within the patch but am running up against the 32768 character limit in Max.

My next thought is to write a custom serializer that exports to a text file but wanted to see if anyone has a clever way of getting around the character limit before I start down that path in earnest.

Thanks in advance.

Joshua Kit Clayton's icon

I'd suggest using the readline/writeline methods to write one line at a time in such an instance.

jic's icon

Thank you for the reply. Searching the readline/writeline methods in the forums turned up a solution I hadn't found in previous searches.