json writer pipeline