Hello, I am facing an issue after a query in PHP and converting the results to JSON using json_encode. The JSON data I have is:
{"ga:visits":"59","ga:pageviews":"117","ga:timeOnSite":"4775.0","average_time_on_site_formatted":"0:01:20","pages_per_visit":"1.98"}
I am struggling with looping through this data and storing the keys and values in different variables. As I am not very familiar with JavaScript, I would greatly appreciate detailed guidance on how to achieve this.
Thank you in advance for your help.