- refactor json_encode filter to use source+target settings
- add specs to cover json_encode