Skip to content
Christopher Dunn edited this page Jul 1, 2015 · 13 revisions

Table of Contents

General

I have an old compiler/platform. Do I need C++11?

We are switching to C++11 only. But our old code still works on old compilers. See the pre-C++11 branch, which will be in light-maintenance-only mode.

How do I write into array values?

https://sourceforge.net/p/jsoncpp/discussion/483465/thread/24cb7c88/

How do I fix the locale, for skipping commas in numbers?

You need this:

set locale(LC_NUMERIC, "POSIX")
after any other locale changes. Here is more info, our discussion, and an example.

How can I get stricter JSON parsing?

Json::Reader reader(Json::Features::strictMode());
See e.g. issue #39.

Why has the formatting changed to write a single value per line?

You need *commentStyle* `"None"`. See issue #181.

How can I query a webpage that returns JSON and parse the results?

Here is a code sample using libcurl for HTTP functionality.

Where can I find prebuilt binaries?

See issue #236:

Project

Where are the API docs?

In a separate repo, to minimize the size of the code repo.

source-code
https://github.com/jacobsa/jsoncpp/
documentation
http://cdunn2001.github.io/json-cpp/
https://github.com/cdunn2001/json-cpp

Are you up-to-date with Chromium patches?

Almost. We plan to be.

Where are older questions and issues?

Windows

error: ambiguous overload for `operator[]` in `Json::Value`

Sorry. See discussion.

Other platforms

How do I cross-compile for ARM?

Try ideas in issue #243:

MediaWiki

Why are you using media wiki here?

Because it provides a nice TOC for all the questions.