Add json writer