Json output writer updated and in agreement with specifications