feat(jsonFilter): new logic of toJson implemented

also update docs