Description
jvar tries to capture some of the expressiveness of JavaScript and bring it into C++
In particular, it implements a Variant type which is similar to 'var' in JS. Like JS, you can store data of any type into it. You can have objects, arrays, arrays of objects, objects with arrays, etc and nest them to any level. You can even have function objects with closure. You can write out Variant as JSON and you can parse JSON directly into a Variant.
The Variant, combined with JSON and simple automatic memory management, makes for a very powerful data structure even in C++.
jvar is designed to be very fast. Because the backing data structures are optimized, JSON parsing speed is very fast. Special attention has been paid to how often things are copied and how often memory is allocated.
jvar doesn't use have any dependencies. It doesn't use Boost and hardly uses STL. It only uses std::string--but even with that jvar tries to minimize memory allocations. Some C++11 features are optio
jvar alternatives and similar libraries
Based on the "JSON" category.
Alternatively, view jvar alternatives based on common mentions on social networks and blogs.
-
simdjson
Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, WatermelonDB, Apache Doris, StarRocks -
RapidJSON
A fast JSON parser/generator for C++ with both SAX/DOM style API -
ArduinoJson
📟 JSON library for Arduino and embedded C++. Simple and efficient. -
json-c
https://github.com/json-c/json-c is the official code repository for json-c. See the wiki for release tarballs for download. API docs at http://json-c.github.io/json-c/ -
JSMN
Jsmn is a world fastest JSON parser/tokenizer. This is the official repo replacing the old one at Bitbucket -
json-parser
Very low footprint DOM-style JSON parser written in portable ANSI C -
frozen
JSON parser and generator for C/C++ with scanf/printf like interface. Targeting embedded systems. -
qt-json
A simple class for parsing JSON data into a QVariant hierarchy and vice versa. -
libjson
a JSON parser and printer library in C. easy to integrate with any model. -
json-voorhees
A killer modern C++ library for interacting with JSON. -
json_dto
A small header-only library for converting data between json representation and c++ structs -
iod.metajson
Non-intrusive, high performance C++17 lightweight JSON de/serializer
Updating dependencies is time-consuming.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of jvar or a related project?