Fatal error with jsoncpp while compiling
<p>Am new to cpp but as per project requirements i need to consume rest api and parse the response.
Am able to call api &amp; capture the response but not able to parse it using JSONCPP library.</p>

<p>These are the steps i followed to parse json:</p>

<ol>
<li>Used this command to install libjsoncpp in ubuntu
<strong>sudo apt-get install libjsoncpp-dev</strong></li>
<li>Downloaded json source files and copied json header files into project folder</li>
<li>Compiling cpp using this command
<strong>gcc -o test.out test.cpp -ljson</strong> </li>
</ol>

<p>it is always giving  </p>

<pre><code>fatal error: json/json.h: No such file or directory
 #include &lt;json/json.h&gt;
                       ^
compilation terminated.
</code></pre>

<p>Didn't find any solution since 2 days. Tried <a href="http://dannykim.me/danny/openflow/69256?ckattempt=1" rel="noreferrer">this</a> also.
Can any one tell me where i am going wrong...</p>