I don't know if this is intended or not (although it seems very unlikely that it is), but when I make a class with a member json variable and assign it in the initializer list (with a parameter from the constructor), it always wraps the json in an extra array of length one. (This doesn't happen when you just assign the member variable to the constructor parameter without the initializer list.)
Reproduction steps
Make a class with a json member variable and a constructor with a json parameter intended to be the value of the member variable. Assign the member variable as the parameter in the initializer list of the constructor. It's the same json object, just in a json array of length one.
Expected vs. actual results
It should just be a json object, but for some reason it's a single element json array containing the object.
Description
I don't know if this is intended or not (although it seems very unlikely that it is), but when I make a class with a member json variable and assign it in the initializer list (with a parameter from the constructor), it always wraps the json in an extra array of length one. (This doesn't happen when you just assign the member variable to the constructor parameter without the initializer list.)
Reproduction steps
Make a class with a json member variable and a constructor with a json parameter intended to be the value of the member variable. Assign the member variable as the parameter in the initializer list of the constructor. It's the same json object, just in a json array of length one.
Expected vs. actual results
It should just be a json object, but for some reason it's a single element json array containing the object.
Minimal code example
Error messages
No response
Compiler and operating system
Windows 10, MSVC Community 2022 C++ 20
Library version
3.11.3
Validation
develop
branch is used.