{"action":"created","issue":{"url":"https://api.github.com/repos/nlohmann/json/issues/314","repository_url":"https://api.github.com/repos/nlohmann/json","labels_url":"https://api.github.com/repos/nlohmann/json/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/nlohmann/json/issues/314/comments","events_url":"https://api.github.com/repos/nlohmann/json/issues/314/events","html_url":"https://github.com/nlohmann/json/issues/314","id":178334874,"number":314,"title":"Is there a way to forward declare nlohmann::json?","user":{"login":"rachelnertia","id":4690038,"avatar_url":"https://avatars.githubusercontent.com/u/4690038?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelnertia","html_url":"https://github.com/rachelnertia","followers_url":"https://api.github.com/users/rachelnertia/followers","following_url":"https://api.github.com/users/rachelnertia/following{/other_user}","gists_url":"https://api.github.com/users/rachelnertia/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelnertia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelnertia/subscriptions","organizations_url":"https://api.github.com/users/rachelnertia/orgs","repos_url":"https://api.github.com/users/rachelnertia/repos","events_url":"https://api.github.com/users/rachelnertia/events{/privacy}","received_events_url":"https://api.github.com/users/rachelnertia/received_events","type":"User","site_admin":false},"labels":[{"id":46374235,"url":"https://api.github.com/repos/nlohmann/json/labels/kind:%20question","name":"kind: question","color":"cc317c","default":false},{"id":304694104,"url":"https://api.github.com/repos/nlohmann/json/labels/state:%20waiting%20/%20please%20discuss","name":"state: waiting / please discuss","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-09-21T12:38:55Z","updated_at":"2016-12-07T01:43:41Z","closed_at":null,"body":"It's preferable not to have to include large header files in other header files, but in my current project I've ended up with json.hpp included in a lot of headers because I can't find a way to forward declare the nlohmann::json type. It's made complicated by all the templating going on. I was wondering if there is actually a way that I just haven't found yet and, if there is, if it could maybe be included as part of the documentation/readme somewhere?\n"},"comment":{"url":"https://api.github.com/repos/nlohmann/json/issues/comments/265330673","html_url":"https://github.com/nlohmann/json/issues/314#issuecomment-265330673","issue_url":"https://api.github.com/repos/nlohmann/json/issues/314","id":265330673,"user":{"login":"jaredgrubb","id":1256381,"avatar_url":"https://avatars.githubusercontent.com/u/1256381?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredgrubb","html_url":"https://github.com/jaredgrubb","followers_url":"https://api.github.com/users/jaredgrubb/followers","following_url":"https://api.github.com/users/jaredgrubb/following{/other_user}","gists_url":"https://api.github.com/users/jaredgrubb/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredgrubb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredgrubb/subscriptions","organizations_url":"https://api.github.com/users/jaredgrubb/orgs","repos_url":"https://api.github.com/users/jaredgrubb/repos","events_url":"https://api.github.com/users/jaredgrubb/events{/privacy}","received_events_url":"https://api.github.com/users/jaredgrubb/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T01:43:41Z","updated_at":"2016-12-07T01:43:41Z","body":"I did try it locally, but it ended up not working well."}}
{"actor":{"display_login":"jaredgrubb"}}