Getting Started with Jsoncpp

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.