As JavaScript uses floating point maths for all numbers, which does not preserve precision in all cases, I want to parse a JSON object containing numbers but generate strings in the returned JavaScript object rather than number objects. Is there a way to do this using standard or third party libraries?
As JavaScript uses floating point maths for all numbers, which does not preserve precision
Share
You can do something like this. This may not be a perfect solution (especially the reg expression), but hope it will help you to solve this.