Add JSON encoder filter.
Merge pull request #554 from ralphm/json_encode

Add JSON encoder filter.