I need help with encoding large array into JSON using PHP's json_encode(). The array is from a local Database. I am using JS to parse JSON. However, the PHP script that handles array to JSON format stops if the dataset is too big. (i.e 100,000 Results). I tried to up my memory_limit to -1 and still does not help. Is it possible to encode a big array using PHP's json_encode()?
Please let me know if my question is too confusing.
Thank you all!
JSON_ENCODEin php is, it tends to add double quotes and escaping sequences which would increase the actual size of the JSON being imported, Why can't you handle this at client side?