transactions formatting nicer for JSON