-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Frequently Asked Questions (FAQ)
We are switching to C++11 only. However, our old code still works on older compilers. See the 0.y.z branch, which is in maintenance-only mode.
See this discussion thread.
You need to set the locale to POSIX:
setlocale(LC_NUMERIC, "POSIX");This should be done after any other locale changes. For more context, see this StackOverflow post.
With modern versions of the library, use the CharReaderBuilder settings:
Json::CharReaderBuilder builder;
Json::CharReaderBuilder::strictMode(&builder.settings_);See Issue #39 for more history.
You likely need to set commentStyle to "None". See Issue #181.
If you set the indentation to an empty string (""), newlines will also be omitted from the output.
Check out these examples:
Here is a code sample using libcurl for HTTP functionality.
See Issue #236.
They are hosted in a separate repository to keep the main repository lightweight:
- Repository: open-source-parsers/jsoncpp-docs
- Web version: Doxygen Documentation
We aim to be as synchronized as possible with the version vendored in Chromium.
This is a known issue on some Windows compilers. See this discussion for more details.
The shebang at the top of the file might prevent Windows from running it correctly. You can run it explicitly with the Python launcher:
py amalgamate.pyRefer to the ideas discussed in Issue #243.