Forums > Javascript

Storing large JS objects in JSON?


jic
June 17, 2013 | 4:32 pm

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.


June 18, 2013 | 10:04 am

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



jic
June 18, 2013 | 11:43 am

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


Viewing 3 posts - 1 through 3 (of 3 total)