0

I'm a beginner at JSON and using APIs. The code below is to put a business page on to my website.

{
 "response_info": { "status": "ok" },
 "title": "Item title", 
 "id": "https://www.gov.uk/api/business-finance-support-finder.json", 
 "web_url": "https://www.gov.uk/business-finance-support-finder",
 "details": {"key": "value"},
 "tags": [
      {"id": "ID", 
       "type": "Section", 
       "title": "Tag Name", 
       "web_url": ""}
    ],
 "related_artefacts": []
}

I just need to get that displayed on to my website, I'm confused as to how i should go about this?

I've tried many different ways but i've come up short. Any help would be very much appreciated.

Phil H
  • 19,928
  • 7
  • 68
  • 105
  • possible duplicate of [How can I pretty-print JSON using JavaScript?](http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript) – philshem Feb 28 '14 at 09:49

1 Answers1

0

This question is often asked. Please see this example of a good solution, using javascript as part of your HTML.

LINK

Community
  • 1
  • 1
philshem
  • 24,761
  • 8
  • 61
  • 127
  • Hi i've looked at that answer and I still don't no how i'd go about it, im a complete novice when it comes to this. thanks – user3364140 Feb 28 '14 at 10:14
  • you add javascript to your HTML and then the javascript reads and prints the JSON: http://www.w3schools.com/js/js_howto.asp – philshem Feb 28 '14 at 11:58