title: How to import external JSON and display in php
body: <p>I have a WordPress site for people with Multiple Sclerosis and to assist them in finding current clinical trials that are recruiting participants I have an external JSON file of search results I want to display on my site. </p>
  
  <p>Here is a sample output from the JSON:</p>
  
  <pre><code>{"intervention_browse":{"mesh_term":["Copolymer 1"]},"id_info":{"nct_id":"NCT00004814"},"sponsors":{"collaborator":[{"agency":"University of Maryland","agency_class":"Other"}],"lead_sponsor":{"agency":"National Center for Research Resources (NCRR)","agency_class":"NIH"}},"overall_status":"Completed","condition_browse":{"mesh_term":["Multiple Sclerosis","Sclerosis","Multiple Sclerosis, Relapsing-Remitting"]}}
  </code></pre>
  
  <p>What would be the best way to do this? An example using cURL or JSON_decode would be nice. (I only know enough to get myself into trouble, so assume I'm in kindergarten please. :) )</p>
  
  <p>Since it's going into a WordPress site, should I use PHP or javascript or a combination of both for displaying it?</p>
  
  <p>Once I get the information to display on my site I have no problem styling it with css. Getting it on the page is my main issue.</p>
  
  <p>I have installed a plugin that allows me to add php directly into any page or post using shortcodes, but what code to put there is what's holding me up.</p>
  
  <p>Here is the JSON file:<a href="http://api.lillycoi.com/v1/trials/search.json?query=cond:%22Multiple+Sclerosis%2C+Relapsing-Remitting%22&amp;fields=id_info.nct_id,condition_browse,sponsors,intervention_browse,overall_status&amp;limit=1000" rel="nofollow">http://api.lillycoi.com/v1/trials/search.json?query=cond:%22Multiple+Sclerosis%2C+Relapsing-Remitting%22&amp;fields=id_info.nct_id,condition_browse,sponsors,intervention_browse,overall_status&amp;limit=1000</a> </p>