I am a newbie in php so I don't know if this is complicated or easy. I have string like below (this is not json)
{"time":"2022-05-14T07:10:53+00:00","host":"xxxxxxxxxxxxxxxx","forwarded_host":"xxxx","remote_addr":"xxxxxxx","req_method":"OPTIONS","req_length":855,"req_uri":"xxxxx","https":"xxx","uri":"/index.php","query_str":"","status":"204","bytes_sent":464,"body_bytes_sent":0,"referer":"xxxxxxx","ua":"xxxxxxx","forwarded_for":"xxxxxx","forwarded_proto":"https","req_time":0.014,"up_res_time":"0.015"}
Has anyway to convert it to object like this ?
{
"time": "2022-05-14T07:10:53+00:00",
"host": "XXXXXXXXXXXXX",
...
}
Thank you for your reading