JSON - data length limit and to work around it

Hi,
I’m using JSON to pass data between my client side JS and PHP serverside. When I build large arrays with PHP though the JSON class (http://mike.teczno.com/json.html) comes up with errors like “Uninitialized string offset” in line 309 in the class file. I read somewhere that JSON has a data length limit of 250 000 unicode characters. Does that mean that JSON is only useful for small amounts of data or can I rewrite the JSON libarary accordingly to make it work? If so, how?

Thanks for your help!

Cheers, Florian

If you are working with 250kb files, I’d consider using a database instead of flat files.