I am working on an old project written in Delphi. The server (Node.JS) processes requests from the client (Delphi Seattle) and returns the data from the database as JSON text. There's no problem in getting data on the client side, as soon as I want to process the data into TJSonObject to append them into the dataset later on. If I have approximately like 200k rows, I have an out of memory problem happens in this line of code:
JsonData := TJSONObject.ParseJSONValue(Response) as TJSONObject;
There's no such problems with small amount of data, but as soon as data gets large, it becomes very time consuming and falls with Out of Memory at some point.
Is there a fast and convenient way to parse JSON in Delphi?