Skip to main content

Examples of code using JSON nlohmann header only Library for C++

Submission Number: 13
Submission ID: 55
Submission UUID: f1e5d6bd-1b34-4717-b364-ed364c7d4834
Submission URI: /form/resource

Created: Thu, 09/19/2019 - 16:14
Completed: Thu, 09/19/2019 - 16:14
Changed: Mon, 07/19/2021 - 11:55

Remote IP address: 130.215.55.231
Language: English

Is draft: No
Yes
Examples of code using JSON nlohmann header only Library for C++
Learning
c++
Advanced
This code showcases how to work with the header-only nlohmann JSON library for C++. In order to compile, change the extensions from json_test.txt to json_test.cpp and test.txt to test.json. You must also download the header files from https://github.com/nlohmann/json. Complilation instructions are at the bottom of json_test. This code is very helpful for creating config files, for example.