Uploaded JSON helper class for PHP.