How to use json in WordPress page?
I have a site built with several plugins. I wanted to use an api call to another site that returns a json formatted value, and display that on a page (basically it is a listing of businesses with their info). I see that there is a json.js file in the include directory of my WordPress installation. What is the syntax to use? How do you get the info displayed on the page? Is it as simple as calling the json.parse function or is there more to it? Is is possible to just include the chunk of code in the WordPress page in using the HTML tab of the editor? I tried looking for a plugin for this but didn’t seem to find one. Any ideas? Thanks.
- The topic ‘How to use json in WordPress page?’ is closed to new replies.