How to read Project.json file in ASP.NET Core 1.0

One of my colleague asked me how to read version number from Project.json file. He needed the version number for error logging. So I gave him the solution and thought of sharing with you. So in this quick post, find sample code to read Project.json file in ASP.NET Core 1.0.