{"id":1459862,"date":"2010-04-10T22:40:05","date_gmt":"2010-04-10T22:40:05","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-nextgen-gallery-how-to-use-jsonphp\/"},"modified":"2016-08-19T17:30:41","modified_gmt":"2016-08-19T17:30:41","slug":"plugin-nextgen-gallery-how-to-use-jsonphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-nextgen-gallery-how-to-use-jsonphp\/","title":{"rendered":"[Plugin: NextGEN Gallery] How to use json.php"},"content":{"rendered":"<p>Can you give an example of how to use json.php?  I have tried several different ways to get this working but I&#8217;m struggling.<\/p>\n<p>I have this in my config:<br \/>\ndefine(&#8216;NGG_JSON_ENABLED&#8217;, true);<\/p>\n<p>I would like to be able to query the gallery using jQuery with a load perhaps, but I can&#8217;t quite seem to get that to work&#8230;either way I get header already included errors.<\/p>\n<p>If I include the json.php file in my templates, I will get the cannot modify header error as well.<\/p>\n<p>Perhaps a basic way to use the json.php script?<\/p>\n","protected":false},"template":"","class_list":["post-1459862","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1459862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1459862\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1459862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}