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
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
**cpp-json is licensed under the GNU General Public License, version 2 or later.**
2
2
3
+
**NOTE:** version [4.1](https://github.com/eteran/cpp-json/releases/tag/4.1) will be the last to not require C++17.
4
+
3
5
**NOTE:** version [2.2](https://github.com/eteran/cpp-json/releases/tag/2.2) will be the last to not require C++11.
4
6
5
7
There are a few different JSON parsing libraries out there. But cpp-json aims to be the simplest to use while still being efficient by using modern c++ techniques. Additionally, this library is header only making it trivial to include in existing projects.
@@ -37,12 +39,12 @@ int main() {
37
39
// ... though in real code you may want to check the type first ;-)
38
40
auto servlets = json["web-app"]["servlet"];
39
41
40
-
// when dealing with arrays, you can just use iterators,
42
+
// when dealing with arrays, you can just use iterators,
41
43
// or feel free to use C++11 ranged-for
42
44
const json::array &a = as_array(servlets);
43
45
for(auto it = a.begin(); it != a.end(); ++it) {
44
46
const json::value &v = *it;
45
-
// all basic types (numbers, strings, booleans) can be converted
47
+
// all basic types (numbers, strings, booleans) can be converted
0 commit comments