blob: 5bff8dca2b239d78e0644b155e32e2c0cdf15f40 [file] [log] [blame] [view]
Iñaki Baz Castillo60bfcf12017-01-12 09:57:341# JsonCpp
Christopher Dunnf9864232007-06-14 21:01:262
Willem863aa362019-03-18 13:02:503[![badge](https://img.shields.io/badge/conan.io-jsoncpp%2F1.8.0-green.svg?logo=data:image/png;base64%2CiVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAA1VBMVEUAAABhlctjlstkl8tlmMtlmMxlmcxmmcxnmsxpnMxpnM1qnc1sn85voM91oM11oc1xotB2oc56pNF6pNJ2ptJ8ptJ8ptN9ptN8p9N5qNJ9p9N9p9R8qtOBqdSAqtOAqtR%2BrNSCrNJ/rdWDrNWCsNWCsNaJs9eLs9iRvNuVvdyVv9yXwd2Zwt6axN6dxt%2Bfx%2BChyeGiyuGjyuCjyuGly%2BGlzOKmzOGozuKoz%2BKqz%2BOq0OOv1OWw1OWw1eWx1eWy1uay1%2Baz1%2Baz1%2Bez2Oe02Oe12ee22ujUGwH3AAAAAXRSTlMAQObYZgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgBQkREyOxFIh/AAAAiklEQVQI12NgAAMbOwY4sLZ2NtQ1coVKWNvoc/Eq8XDr2wB5Ig62ekza9vaOqpK2TpoMzOxaFtwqZua2Bm4makIM7OzMAjoaCqYuxooSUqJALjs7o4yVpbowvzSUy87KqSwmxQfnsrPISyFzWeWAXCkpMaBVIC4bmCsOdgiUKwh3JojLgAQ4ZCE0AMm2D29tZwe6AAAAAElFTkSuQmCC)](https://bintray.com/theirix/conan-repo/jsoncpp%3Atheirix)
dota17c634b982019-10-25 09:12:114[![badge](https://img.shields.io/badge/license-MIT-blue)](https://github.com/open-source-parsers/jsoncpp/blob/master/LICENSE)
5[![badge](https://img.shields.io/badge/document-doxygen-brightgreen)](http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html)
dota17ff58fdc2019-11-07 07:25:066[![Coverage Status](https://coveralls.io/repos/github/open-source-parsers/jsoncpp/badge.svg?branch=master)](https://coveralls.io/github/open-source-parsers/jsoncpp?branch=master)
dota17c634b982019-10-25 09:12:117
paulo746ef152017-04-09 17:14:388
Aaron Jacobsff22ca72014-07-01 01:56:569[JSON][json-org] is a lightweight data-interchange format. It can represent
10numbers, strings, ordered sequences of values, and collections of name/value
11pairs.
Christopher Dunnf9864232007-06-14 21:01:2612
Aaron Jacobsff22ca72014-07-01 01:56:5613[json-org]: http://json.org/
Christopher Dunnf9864232007-06-14 21:01:2614
Iñaki Baz Castillo60bfcf12017-01-12 09:57:3415JsonCpp is a C++ library that allows manipulating JSON values, including
Aaron Jacobsff22ca72014-07-01 01:56:5616serialization and deserialization to and from strings. It can also preserve
17existing comment in unserialization/serialization steps, making it a convenient
18format to store user input files.
Christopher Dunnf9864232007-06-14 21:01:2619
Iñaki Baz Castillo60bfcf12017-01-12 09:57:3420
21## Documentation
22
23[JsonCpp documentation][JsonCpp-documentation] is generated using [Doxygen][].
24
25[JsonCpp-documentation]: http://open-source-parsers.github.io/jsoncpp-docs/doxygen/index.html
26[Doxygen]: http://www.doxygen.org
27
Christopher Dunnda0fcfb2015-02-12 17:18:2328
Christopher Dunn533dbe02014-11-03 18:39:0129## A note on backward-compatibility
Iñaki Baz Castillo60bfcf12017-01-12 09:57:3430
Christopher Dunnda0fcfb2015-02-12 17:18:2331* `1.y.z` is built with C++11.
Christopher Dunn2fc08b42015-03-06 03:45:4232* `0.y.z` can be used with older compilers.
Chend2d4c742020-04-30 10:05:1733* `00.11.z` can be used both in old and new compilers.
Christopher Dunnda0fcfb2015-02-12 17:18:2334* Major versions maintain binary-compatibility.
Baptiste Lepilleur57ee0e32010-02-22 04:16:1035
Chend2d4c742020-04-30 10:05:1736### Special note
37The branch `00.11.z`is a new branch, its major version number `00` is to show that it is
38different from `0.y.z` and `1.y.z`, the main purpose of this branch is to make a balance
39between the other two branches. Thus, users can use some new features in this new branch
40that introduced in 1.y.z, but can hardly applied into 0.y.z.
Baptiste Lepilleur7469f1d2010-04-20 21:35:1941
Christopher Dunnd40f26d2017-08-27 20:16:4342## Using JsonCpp in your project
43
Griffin Downs7e973452019-10-01 19:53:4244### The vcpkg dependency manager
45You can download and install JsonCpp using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
46
47 git clone https://github.com/Microsoft/vcpkg.git
48 cd vcpkg
49 ./bootstrap-vcpkg.sh
50 ./vcpkg integrate install
Edward Breyb8cb8882020-05-08 01:00:1251 ./vcpkg install jsoncpp
Griffin Downs7e973452019-10-01 19:53:4252
53The JsonCpp port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
54
Christopher Dunnd40f26d2017-08-27 20:16:4355### Amalgamated source
Jacob Bundgaard41ffff02019-10-18 18:06:5656https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated-(Possibly-outdated)
Christopher Dunnd40f26d2017-08-27 20:16:4357
Kostiantyn Ponomarenko4bfa9622018-10-18 17:12:4658### The Meson Build System
59If you are using the [Meson Build System](http://mesonbuild.com), then you can get a wrap file by downloading it from [Meson WrapDB](https://wrapdb.mesonbuild.com/jsoncpp), or simply use `meson wrap install jsoncpp`.
60
Christopher Dunnd40f26d2017-08-27 20:16:4361### Other ways
dota17c634b982019-10-25 09:12:1162If you have trouble, see the [Wiki](https://github.com/open-source-parsers/jsoncpp/wiki), or post a question as an Issue.
Christopher Dunnd40f26d2017-08-27 20:16:4363
Iñaki Baz Castillo60bfcf12017-01-12 09:57:3464## License
65
Aaron Jacobs47f15772014-07-01 03:13:4666See the `LICENSE` file for details. In summary, JsonCpp is licensed under the
Baptiste Lepilleur7469f1d2010-04-20 21:35:1967MIT license, or public domain if desired and recognized in your jurisdiction.