- json_encode: documentation ( source)
<?php
echo json_encode("In a typical scenario, this would be a perfectly acceptable implementation, but as the search page offers a powerful interface for filtering against attributes, it allows you to enable or disable attributes individually. Herein lies the issue; there is simply no way to allow the attribute to react to its being \"selected\" as a search filter.
Using a pubsub event subscription, here is one way that the system would work:
**Publisher**
We just want to broadcast that there has been a change in the search filter selection.
_Currently within ccmcheckSelectedAdvancedSearchField_
```javascript
ccm_events.publish('sitemap/search/filter/add', {
element: $(this).find('.ccm-selected-field-content'),
akID: $(this).val()
});
```
");