ohler55 / ojc Goto Github PK
View Code? Open in Web Editor NEWOptimized JSON in C
License: MIT License
Optimized JSON in C
License: MIT License
Interesting library! it seems very thorough, thanks for publishing it (documentation is very thorough, too!).
I noticed there are a few leaks detected by AddressSanitizer when executing the unit tests, see attached patch (sorry for the zip, it's what github permits ๐ ). I think it's just due to not freeing the objects generated in the tests (eg some missing calls to ojc_destroy()
) but I wasn't sure. The command I used (documented in the patch) is:
CFLAGS="-fsanitize=leak -fsanitize=address -fsanitize=undefined" make test
There are several C libraries for JSON parsing which are relatively or very popular, even here on GitHub (e.g. json-c, cJSON, janson). It would help if you could post a comparison of the foci, strengths and weaknesses of these other libraries vis-a-vis oj. It could be a Wiki page or a README section.
Now, it's true that the best comparison would be some third-party surveying multiple libraries impartially, but - it is also meaningful to read library authors' explanations of why they "rolled their own" rather than using an existing library; and what they see as the main differences.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.