How to prevent Gson from converting a long number (a json string ) to scientific notation format?

前端 未结 7 2110
予麋鹿
予麋鹿 2020-11-29 06:14

I need to convert json string to java object and display it as a long. The json string is a fixed array of long numbers:

{numbers
[ 268627104, 485677888, 506         


        
相关标签:
7条回答
  • 2020-11-29 06:31

    Not smart, but still working method is to add " at the start and at the end of the number. Then after processing is finished, delete it.

    0 讨论(0)
提交回复
热议问题