You can use drupal_to_js() instead of json_encode(). I've done this on a few modules I've worked on in order to get rid of the PHP 5.2+ or extra JSON extension requirement. This will upgrade nicely to D7 as well since drupal_to_js basically becomes a rapper for json_encode at that point.

Comments

brendoncrawford’s picture

Assigned: Unassigned » brendoncrawford
Priority: Normal » Minor
brendoncrawford’s picture

Good point.

brendoncrawford’s picture

Status: Active » Fixed

This has been fixed in 6.x-1.x-dev.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.