This won't work if you have in attribute " character which will break JSON output. Instead drupal_to_js($output); should be used on line 273.. Also rest of code (uc_aac_json) can be removed.

Comments

cyu’s picture

Status: Needs review » Fixed

Ah...thank you. I have seen drupal_to_js used elsewhere but did not realize it was basically the same as json_encode with some extra escaping. Committed: http://drupal.org/cvs?commit=124509

Anonymous’s picture

Status: Fixed » Closed (fixed)

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