1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-29 23:01:16 +03:00

🔖 set version to 3.12.0

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2025-04-07 21:32:58 +02:00
parent 00ecc7ed7a
commit 34e46d76da
168 changed files with 295 additions and 295 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -1,6 +1,6 @@
{
"name": "JSON for Modern C++",
"version": "3.11.3",
"version": "3.12.0",
"archive": "JSON_for_Modern_C++.tgz",
"author": {
"name": "Niels Lohmann",

BIN
docs/json.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -2,16 +2,16 @@
"compiler": {
"c++": "201103",
"family": "gcc",
"version": "12.3.0"
"version": "12.4.0"
},
"copyright": "(C) 2013-2022 Niels Lohmann",
"copyright": "(C) 2013-2025 Niels Lohmann",
"name": "JSON for Modern C++",
"platform": "apple",
"url": "https://github.com/nlohmann/json",
"version": {
"major": 3,
"minor": 11,
"patch": 3,
"string": "3.11.3"
"minor": 12,
"patch": 0,
"string": "3.12.0"
}
}

View File

@ -1 +1 @@
nlohmann::json_abi_v3_11_3
nlohmann::json_abi_v3_12_0

View File

@ -1 +1 @@
JSON for Modern C++ version 3.11.3
JSON for Modern C++ version 3.12.0

View File

@ -18,7 +18,7 @@ and use the namespaced imported target from the generated package configuration:
cmake_minimum_required(VERSION 3.5)
project(ExampleProject LANGUAGES CXX)
find_package(nlohmann_json 3.11.3 REQUIRED)
find_package(nlohmann_json 3.12.0 REQUIRED)
add_executable(example example.cpp)
target_link_libraries(example PRIVATE nlohmann_json::nlohmann_json)
@ -77,7 +77,7 @@ to the following.
```cmake title="thirdparty/CMakeLists.txt"
if(EXAMPLE_USE_EXTERNAL_JSON)
find_package(nlohmann_json 3.11.3 REQUIRED)
find_package(nlohmann_json 3.12.0 REQUIRED)
else()
set(JSON_BuildTests OFF CACHE INTERNAL "")
add_subdirectory(nlohmann_json)
@ -100,7 +100,7 @@ automatically download a release as a dependency at configure time.
include(FetchContent)
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.3/json.tar.xz)
FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.12.0/json.tar.xz)
FetchContent_MakeAvailable(json)
add_executable(example example.cpp)
@ -115,7 +115,7 @@ automatically download a release as a dependency at configure time.
```cmake
FetchContent_Declare(json
GIT_REPOSITORY https://github.com/nlohmann/json
GIT_TAG v3.11.3
GIT_TAG v3.12.0
)
```

View File

@ -1,5 +1,5 @@
[requires]
nlohmann_json/3.11.3
nlohmann_json/3.12.0
[generators]
CMakeToolchain

View File

@ -3,7 +3,7 @@ project(json_example)
include(${CMAKE_SOURCE_DIR}/cmake/CPM.cmake)
CPMAddPackage("gh:nlohmann/json@3.11.3")
CPMAddPackage("gh:nlohmann/json@3.12.0")
add_executable(json_example example.cpp)
target_link_libraries(json_example PRIVATE nlohmann_json::nlohmann_json)

View File

@ -398,7 +398,7 @@ If you are using [cget](http://cget.readthedocs.io/en/latest/), you can install
cget install nlohmann/json
```
A specific version can be installed with `cget install nlohmann/json@v3.11.3`. Also, the multiple header version can be
A specific version can be installed with `cget install nlohmann/json@v3.12.0`. Also, the multiple header version can be
installed by adding the `-DJSON_MultipleHeaders=ON` flag (i.e., `cget install nlohmann/json -DJSON_MultipleHeaders=ON`).
??? example
@ -727,7 +727,7 @@ If you are using [`CPM.cmake`](https://github.com/TheLartians/CPM.cmake), add th
[CPM.cmake script](https://github.com/TheLartians/CPM.cmake#adding-cpm) and the following snippet to your CMake project:
```cmake
CPMAddPackage("gh:nlohmann/json@3.11.3")
CPMAddPackage("gh:nlohmann/json@3.12.0")
```
??? example