JSON, JavaScript Object Notation is a lightweight data-interchanged format. Like XML (althought it’s different), it can be use to parsing data between one program to another. Nowadays many websites that provide json api so many people can interact or utilize the data that parsed via json interface. But I will not discuss about what json is, in here I will discuss how to read json api with PHP.
In here we will use Aceh Province (Indonesia) Covid-19 json API report as an example. Before that, we have to enable json library in our PHP configuration. After json library already enabled, now it’s time to read the json API with PHP. Here is the url of Aceh Province (Indonesia) Covid-19 json API report. Now we have to open the URL to know how to get the datas.Read More »