re-formatting json