String checker for older php versions

Checks to see if a string can be decoded to JSON