Fix json missing comma, and update generated api