Skip to content
Advertisement

Tag: large-files

Parse Large (100MB) JSON with PHP using salsify’s JsonStreamerParser in PHPProBid

I have a JSON file: which contains an object of objects (about 60000+). I’ve also installed https://github.com/salsify/jsonstreamingparser via composer to save every item into a database in PHPProBid as written in the following code: Once decompressed, the JSON file looks something like this: or in a human-readable way: Nonetheless, when I call that function it gets stuck after about saving

Advertisement