As I mentioned in THIS QUESTION, I have problem when getting the response from the server.
I receive an array of objects with these attributes:
[{
"Id": 143187001116603, // VERY big number which I want to convert it to string
"Name": "تملی612", // string
"Title": "تسهیلات مسکن بانک ملی-اسفند96", // string
"InsCode": "IRO6MELZ96C1" // string
},
...
]
Any simple way to convert a specified type (Number
) to string
in a JSON
file?
I see the replacer
argument in JSON.stringify()
but I have no idea how to use that...
UPDATE
One of those Ids, is: 9481703061634967
but JS convert that to 9481703061634968
!
UPDATE
As Jonas H said in this answer, JS run the default parsing and that's why i lose my real Id
value!
Any idea?