tomlplusplus
json_test_data
Our great sponsors
tomlplusplus | json_test_data | |
---|---|---|
23 | 25 | |
1,400 | 9 | |
- | - | |
6.4 | 0.0 | |
about 1 month ago | about 2 years ago | |
C++ | ||
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tomlplusplus
-
how to handle config files in c++?
Unless you want to make your own config file parser as an exercise (which is a good idea) I'd recommend using toml++.
-
Cmake fetchContent not working in a docker container.
It's a public repo - this one: https://github.com/marzer/tomlplusplus but thank you
-
Poxy - a Doxygen frontend - v0.9.0 released
For a live demo, see the toml++ homepage: https://marzer.github.io/tomlplusplus/
-
Preferred way to read in application settings/config in C++
Added bonus, tomlplusplus is a solid C++ implementation, actively updated, and easy to drop into a project (header only, CMake, vcpkg, Conan, etc.). Very easy to use for what I've needed.
-
toml++ v3.2.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
CMake for toml not working
cmake_minimum_required(VERSION 3.23) project(testProj) set(CMAKE_CXX_STANDARD 23) set(FETCHCONTENT_BASE_DIR ${PROJECT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}/libs CACHE PATH "Missing description." FORCE) include(FetchContent) FetchContent_Declare( tomlplusplus GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git GIT_TAG v3.1.0 ) FetchContent_MakeAvailable(tomlplusplus) add_executable(testProj testProj/src/main.cpp) target_link_libraries(testProj tomlplusplus)
- toml++: Header-Only TOML Config File Parser And Serializer For C++
-
What are some use cases of using shared_ptr in a single threaded program?
I use them in toml++ to store the path of the source document for all the data nodes parsed from that document. Storing it as a separate std::string allocation for every single object would have been very wasteful, and the alternative would have been to make an overall document class that owned everything, which I didn't want to do, so shared_ptr was a good compromise.
-
toml++ v3.1.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
What are some projects that taught you a lot?
toml++ was both my first 'public'/open-source project, and my first ever attempt at a parser. There's a few things I'd do differently now if I were to write it from scratch, but I've learned a lot along the way (particularly about making things build 'clean' on multiple platforms).
json_test_data
-
3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup
>Maybe take a shot at parsing JSON in C++ and see if the nostalgia survives the process.
I have used this library in the past and was actually pretty easy
https://github.com/nlohmann/json
-
Sane C++ Libraries
https://github.com/nlohmann/json
I used this for JSON last time I wrote any C++ a few years ago and it still seems popular. It seemed sane enough to me.
-
Experience using crow as web server
On the other hand, I'd like to bring in the json library of my choice, e.g. https://github.com/nlohmann/json or https://github.com/danielaparker/jsoncons. So I'd prefer the web server library provides as little as possible in the way of Json support, and certainly doesn't get in the way of using my library of choice. Similarly, I'd like to use my choice of automatic object serialization.
- [Cpp] Raccomandazioni moderne di biblioteca di serializzazione JSON C ++
-
What are some C++ projects with high quality code that I can read through?
I find openMVG very decent, FTXUI might be a good one and nlohmann's json library is also pretty nice. I don't really know of any project that strictly adheres to the core guidelines, except maybe for some of Jason Turner's (sample) projects.
-
Collecting the best C++ practices
JSON for Modern C++. Intuitive syntax. Trivial integration. Serious testing. Memory efficiency. Speed.
-
C++ Is Incredible
Please provide us an example of this one minute process you talk about for an example project of opening a JSON file, writing to it and closing it with a library like `nlohmann`s.
-
Save data question
Use a small library like this: https://github.com/nlohmann/json
- Good repos for beginners to browse that follow best modern C++ practices (including testing, static analysis etc...)
-
palpatine supports config file in JSON format
I worked on my partner’s static site generator, rwar, to implement this feature and she worked on my static site generator – palpatine. I was easily able to do this in rwar which is written in Python. However, I realized that this feature was much harder to implement on palpatine which is written in C++. Samina reached out multiple times seeking help for the broken Cmake configurations and for helping in integrating the nlohmann/json library.
What are some alternatives?
toml11 - TOML for Modern C++
Telegram-web-z - Telegram Web Z, GPL v3
Magic Enum C++ - Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
PHP CPP - Library to build PHP extensions with C++
toml - Tom's Obvious, Minimal Language
webminidisc - Upload your Music to NetMD MiniDisc devices thanks to WebUSB and WASM
toml - Python lib for TOML
phptdlib - PHP Extension for tdlib/td written with PHP-CPP
cmkr - Modern build system based on CMake and TOML.
serializer - A single header standard C++ serialization framework.
tree-sitter-html - HTML grammar for Tree-sitter
tdlib