Skip to main content
Cyberinfrastructure Community-wide Mentorship Network
Search
Join
Log in
Mentorship
Join CCMNet
CCMNet Guide
Mentorship Opportunities
Community
CCMNet Members
CCMNet Affinity Group
People
Affinity Groups
Blog
Jobs
Organizations
Community of Communities
Join the CSSN
Get Help
Ask a Question
Resources
Request a Consult
Projects
Knowledge Base
Mentorship Resources
KB Resources
Ask.CI Forum
Tags
About Us
About Us
User Guide
Become a Campus Champion
User Guide
Affinity Groups FAQ
Governance
Code of Conduct
News
About CCMNet
Annual Meeting
Tags
Examples of code using JSON nlohmann header only Library for C++
Submission navigation links for Knowledge Base Resources
‹
Previous submission
Next submission
›
Submission information
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
Submitted by:
Mariana Pachon-Puentes
Language:
English
Is draft:
No
Webform:
Knowledge Base Resources
Approved
Yes
Title
Examples of code using JSON nlohmann header only Library for C++
Category
Learning
Tags
c++
Skill Level
Advanced
Description
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.
Link to Resource
json_test.txt
test.txt