fix jsonify filter when used with boolean values
Merge pull request #3154 from afeld/jsonify-bool