yes, you are right JSON install is necessary.
json.org explains
possibilities to add JSON support if you don't have a PHP version with it installed by default, but of course the most easiest way is to install a PHP version with JSON support.
PHP4 version: well, someone else added this port and it used to work for him. I am not familiar with the port itself, so cannot advise you on this one.