update writejson