How to use json in WordPress page? (1 post)

  1. sloporto
    Posted 5 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Topic