Convert an array of unsigned short to JSON using the nlohmann library
I want to convert an array of unsigned short to JSON using the nlohmann library.
Invalid characters on Json to string conversion [closed]
Closed 2 days ago.
Why am I getting the error “Error parsing JSON: [json.exception.type_error.302] type must be array, but is object”
The following function(or part of it, I will only add the part that is relevant to the problem) is supposed to load a ui configuration for a simple game engine I am making from a .json file(this is all custom). (I am using the Nlohmann json library for modern c++)