add json writer