jsonDecode function decoding encoded MODX tags

- decoding is necessary because MODX tags are hexadecimal entity encoded for security reasons