refactoring JsonWriter
first custom filter definition