first working version of jsonbased writer