Post a JSON object from PHP using cUrl
<p>I have created a JSON object using php functionality <code>json_encode</code></p>

<p>The Object is formulated this way:</p>

<pre><code>$object_array[]=array('value1' =&gt; $value1, 'value2' =&gt; $value2);

$json_output = json_encode($object_array, JSON_UNESCAPED_SLASHES);
</code></pre>

<p>I need to post the <code>$json_output</code> to a URL using the 'cUrl' functionality of PHP.</p>

<p>Can anyone suggest something based on the above code ?</p>