-
-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use rapidjson as a JSON library #141
Comments
You might want to check timings. nlohmann json is not that fast, but it's faster than dropbox/json11... https://github.com/miloyip/nativejson-benchmark I'm personally using rapidjson, but YMMV of course. |
You can contribute rapidjson version of TinyGLTF. PR is always welcome! |
Love this change - json.hpp is too huge |
I tend to agree about RapidJSON being a great choice |
I have revisiting rapidjson and found there is a script which can generate single file of rapidjson headers. I have wrote rapidjson-amalgamation version of tinygltf(W.I.P.) and it works well so far. https://github.com/syoyo/tinygltf/tree/rapidjson It looks promising so I am planning to switch to use rapidjson for faster C++ compilation and builtin support of schema validator. |
This will be great for us as well, as we are currently struggling with the # of allocations. Schema validation is an awesome plus! 👍 |
We can now use RapidJSON in |
Currently TinyGLTF uses nlohmann's json.hpp https://github.com/nlohmann/json as an underlying JSON library.
json.hpp is working well, but is overkill for TinyGLTF and sometimes it faces the portability problem related to C++ compiler versions.
https://github.com/dropbox/json11 is much more simple, portable, and has enough feature for TinyGLTF. I have implemented json11 version of TinyGLTF in
json11
branch: https://github.com/syoyo/tinygltf/tree/json11I am planning to switch to use json11 after running several tests.
The text was updated successfully, but these errors were encountered: