Jump to content
Steve Maughan

Fastest Way to Read / Parse a large JSON File?

Recommended Posts

I need to read and parse a large JSON file (of geographic data) as fast as possible. I'd prefer to use Delphi's own classes but I'm not adverse using a third party component if it's measurably faster. 

 

What's the best way to do this?

 

Thanks,

 

Steve

Share this post


Link to post
40 minutes ago, Remy Lebeau said:

Have you read Delphi's JSON documentation yet? Particularly the "Reading a JSON With Different Frameworks" examples in the Readers and Writers JSON Framework section. Also see Readers and Writers JSON Framework: Reading JSON Objects

Thanks Remy — yes, I've take a look. The examples are threadbare to say the least.

 

Steve

Share this post


Link to post

kbmMW's JSON parser is pretty fast. If you have Delphi Berlin, you can visit https://portal.components4developers.com, register and download kbmMW Community Edition which is free. It contains the native JSON, XML, BSON, MessagePack, YAML and CSV parsers/generators.

 

Share this post


Link to post

Has anyone done any benchmarking lately on JSON libs?

Ones I have seen are bit old I think. (I am not needing one right now, but would be good for the community if someone woulöd do something like that)

 

.Tee.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×