aligning api with details views of sed and json dump to file