So I was given a link to a newsfeed by a colleague, and he wants it up on the Wordpress site I'm working on. I have no idea what this is and I have absolutely no idea what to do with it! The mind-blowing part is that he doesn't know what this is exactly either, yet he made it..
This is supposedly a list of news items: http://www.slussen.biz/api/newslist/get?id=16
And this should be single news items: http://www.slussen.biz/api/news/1146
What is this, and what can I do with it?
Super grateful for any suggestions.
I don't usually answer this kind of questions since it proves no sign of effort but I'll help you out.
The file you have received is a JSON document, containing lists of news that your client wants on his website.
To put it simply, it a file containing information structured as key:value. That JSON document contains a lot of information, it is called a JSON Array. Each element is called a JSON Object. JSON is used a lot because of its ease of use by various programs.
There are some ways to put that data on your database. Since your website is WORDPRESS, I'm sure that you can have access to a database administration panel where you can import that document. I suggest reading this thread: Importing JSON into Mysql on to how to import a JSON document to PHPMyAdmin. If that's not your database management platform, you can still do it manually in worst cases, just format it using any tool such as https://jsonformatter.curiousconcept.com/ to have a clear view of how your data is structured.
Good luck.
it's best to view JSON and Validate using https://codebeautify.org/jsonviewer or https://jsonformatter.org/ to make sure data is valid.