I am new! please go easy on me.
I have a PHP file that when run, sends an email. The contents of the email is a long json string, but for example, lets say that it's a short string like this:
{
"firstName": "Jon",
"lastName": "Ryan"
}
The string is held in a variable called $json_response.
In terms of research, I found a .js library that outputs json exactly in the way that I'm looking for. It's here https://github.com/marianoguerra/json.human.js ... but I don't know how to use that library properly in my project.
So, I'm wondering if it's possible to get an output similar the output of the json.human.js library, but using PHP rather than js?