Added json writer