How to parse Double to JSON in swift with decimal?

前端 未结 0 1749
深忆病人
深忆病人 2020-12-09 02:58

When I am trying to parse data object with double data as 1.0 in JSON file I have just 1 and my backend thinks that it is Int. How I can fix it?

public struct         


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