fix api update problem on JSON conversion