{"id":9799603,"date":"2017-12-20T12:50:46","date_gmt":"2017-12-20T12:50:46","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/using-json-data-for-input\/"},"modified":"2017-12-20T12:50:46","modified_gmt":"2017-12-20T12:50:46","slug":"using-json-data-for-input","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/using-json-data-for-input\/","title":{"rendered":"Using Json data for input"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I tried to load a json file with ajax but it doesn&#8217;t seem to work.<\/p>\n<p>Here&#8217;s the code:<\/p>\n<pre><code>[wp-datatable id=&quot;table&quot;]\npaging: false,\nresponsible: true,\nsearch: true,\nstateSave: true,\najax: {\nurl: &quot;&lt;em&gt;URL&lt;\/em&gt;\/webradio_test.json&quot;\n},\ndataType: &#039;json&#039;,\ncache: false,\ntype: &#039;GET&#039;,\ncolumns: [{ &quot;data&quot;: &quot;URL&quot; },{ &quot;data&quot;: &quot;public&quot; }]\n[\/wp-datatable]<\/code><\/pre>\n<p>Here&#8217;s the json file:<\/p>\n<pre><code>[\n  {\n    &quot;URL&quot;: &quot;4urock.com&quot;,\n    &quot;public&quot;: &quot;tous publics&quot;\n  },\n  {\n    &quot;URL&quot;: &quot;77fm.net&quot;,\n    &quot;public&quot;: &quot;tous publics&quot;\n  }\n]<\/code><\/pre>\n<p>Any idea about where i did some mistakes?<\/p>\n","protected":false},"template":"","class_list":["post-9799603","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9799603","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\/9799603\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9799603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}