Reply To: Json api to groups page
But you would, the code block in the centre isn’t JS it’s PHP and you have escaped out of PHP parsing so it will be treated as cdata.
Why are you thinking you need to use json functions?
Perhaps explaining exactly what your trying to achieve might prompt someone to suggest a better approach which there almost certainly is.