You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, create a [vcpkg.json manifest](https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-json),
60
+
enabling manifest mode and adding JsonCpp to the manifest's dependencies list.
61
+
62
+
```sh
63
+
vcpkg new --application
64
+
vcpkg add port jsoncpp
65
+
```
66
+
67
+
> [!NOTE]: you can use vcpkg in either classic mode or manifest mode (recommended).
68
+
69
+
#### Classic mode
52
70
53
-
The 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.
71
+
If your project does not have a `vcpkg.json`,
72
+
your project is in [Classic mode](https://learn.microsoft.com/en-us/vcpkg/concepts/classic-mode)
73
+
you can install JsonCpp by directly invoking the `install` command:
74
+
75
+
```sh
76
+
vcpkg install jsoncpp
77
+
```
78
+
79
+
### Manifest mode
80
+
81
+
If your project *does* have a vcpkg.json manifest, your project is in [Manifest mode](https://learn.microsoft.com/en-us/vcpkg/concepts/manifest-mode)
82
+
and you need to add JsonCpp to your package manifest dependencies, then invoke
83
+
install with no arguments.
84
+
85
+
```sh
86
+
vcpkg add port jsoncpp
87
+
vcpkg install
88
+
```
89
+
90
+
Example manifest:
91
+
92
+
```sh
93
+
{
94
+
"name": "best-app-ever",
95
+
"dependencies": [ "jsoncpp" ],
96
+
}
97
+
```
98
+
99
+
> [!NOTE] The JsonCpp port in vcpkg is kept up to date by Microsoft team members and community contributors.
100
+
> If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg)
101
+
> on the vcpkg repository.
54
102
55
103
### Conan package manager
56
104
57
-
You can download and install JsonCpp using the [Conan](https://conan.io/) package manager:
105
+
You can download and install JsonCpp using the [Conan](https://conan.io/)
The JsonCpp package in Conan Center is kept up to date by [ConanCenterIndex](https://github.com/conan-io/conan-center-index) contributors. If the version is out of date, please create an issue or pull request on the Conan Center Index repository.
112
+
The JsonCpp package in Conan Center is kept up to date by [ConanCenterIndex](https://github.com/conan-io/conan-center-index)
113
+
contributors. If the version is out of date, please create an issue or pull request on the
See the [Wiki entry on Amalgamated Source](https://github.com/open-source-parsers/jsoncpp/wiki/Amalgamated-(Possibly-outdated)).
65
119
66
120
### The Meson Build System
67
-
If 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`.
121
+
122
+
If you are using the [Meson Build System](http://mesonbuild.com), then you can
123
+
get a wrap file by downloading it from [Meson WrapDB](https://mesonbuild.com/Wrapdb-projects.html),
124
+
or simply use `meson wrap install jsoncpp`.
68
125
69
126
### Other ways
70
-
If you have trouble, see the [Wiki](https://github.com/open-source-parsers/jsoncpp/wiki), or post a question as an Issue.
127
+
128
+
If you have trouble, see the
129
+
[Wiki](https://github.com/open-source-parsers/jsoncpp/wiki), or post a question
130
+
as an Issue.
71
131
72
132
## License
73
133
74
-
See the `LICENSE` file for details. In summary, JsonCpp is licensed under the
75
-
MIT license, or public domain if desired and recognized in your jurisdiction.
134
+
See the [LICENSE](./LICENSE) file for details. In summary, JsonCpp is licensed
135
+
under the MIT license, or public domain if desired and recognized in your
0 commit comments