-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Can't read json file #1791
Copy link
Copy link
Closed
Labels
kind: questionsolution: invalidthe issue is not related to the librarythe issue is not related to the library
Metadata
Metadata
Assignees
Labels
kind: questionsolution: invalidthe issue is not related to the librarythe issue is not related to the library
Describe what you want to achieve.
Read .json file as json object
Describe what you tried.
downloaded the include/nlohmann folder in my local project's include folder
Create a .json file in src
std::ifstream i(path+"config.json", std::ifstream::binary);json j;i >> j;it always shows
Describe which system (OS, compiler) you are using.
ubuntu 16.04 xenial
Describe which version of the library you are using (release version, develop branch).
JSON for Modern c++ v3.7.0