-
C++ compiler (e.g., g++)
-
JSON library (https://github.com/nlohmann/json), suggest installing by
apt
sudo apt install nlohmann-json3-dev
-
Base64 library (https://github.com/ReneNyffenegger/cpp-base64),
.h
and.cpp
are included
-
Clone / download the source code from repository
-
Change directory to directory containing source code
cd <path>
-
Compile the program using C++ compiler to generate executable file named "solution"
g++ -std=c++11 solution.cpp base64.cpp -o solution
- Checking exists of required input file
data/data.json
: input JSON fileoutput-schema/schema.json
: output JSON schema
- Running this command to execute the program
./solution
- Result is in
output.json
in the same directory