How to use sanitize fields for json output