remove trailling coma in json