'How to show json output in a php file? [duplicate]

I've solar panels with Enphase monitoring system. I can read out my panels with a json file Example output below.

How can i connect directly with php (or html with javascript?) to http://192.168.1.2/api/v1/production/inverters and have the out like this:

SerialNumber: 12345678
lastReportDate: 29-04-2022 16:40
LastReportWatts: 137 Watts

SerialNumber: 87654321
lastReportDate: 29-04-2022 16:40
LastReportWatts: 149 Watts

Output of the file:\

[
  {
    "serialNumber": "12345678",
    "lastReportDate": 1651242353,
    "devType": 1,
    "lastReportWatts": 137,
    "maxReportWatts": 230
  },
  {
    "serialNumber": "87654321",
    "lastReportDate": 1651242333,
    "devType": 1,
    "lastReportWatts": 149,
    "maxReportWatts": 297
  }
]


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source