Getting Started with Jsoncpp
First, jsoncpp download and compile
new and parsed JSON files for C + + typically use the Jsoncpp open Source Library. :https://github.com/open-source-parsers/jsoncpp.
Click the "Downdload ZIP" button to get jsoncpp-master.zip. Unzip the downloaded "Jsoncpp-master.zip" as shown in:
use VS2010 to open the project under the following path, in the Debug version and release version of the Lib_json Project Project generation and link operations, the success of the project can be closed.
after compiling, the result will be two more folders (debug,release):
ii. jsoncpp configuration details in the VS2010 project
VS2010 using jsoncpp under New project: (Take console program Jsontest as an example)
(1) New project Jsontest, and compile.
(2) Copy the JSON folder under Jsoncpp-master\include to the Jsontest project directory.
(3) Jsoncpp-master\makefiles\msvc2010\debug under Lib_json.lib Static library copy to Jsontest project directory.
(4) Right click Jsontest Project-"Properties-" Configuration Properties-"linker-" input-"additional dependency edit lib_json.lib into the dependency.
Complete the pre-configuration.
Third, the use of jsoncpp for the creation and parsing of JSON files. (not to be continued)
Getting Started with Jsoncpp