Apparently server version of PHP 5.5 is having issues with recursive JSON encoding, need to allow null in place of error