Added json filter, and hook for after writing an item