In swift : Whenever I'm sending JSON Request, Float 1.0 is converted to 1 but server thinks as Integer 1 and API fails, have any idea how to solve?

前端 未结 0 817
后悔当初
后悔当初 2021-01-24 04:17

I wanted to send 1.0 but not 1

JSON data which is going to the server(python) (don\'t want change in server side)

{ floatValue1 : 1, 
  na         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题