Vaishalirajput / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

long integer values displayed incorrectly #297

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The server returns:
{"id":7329270081369170538,"name":"arya.irani","tickets":[]}

Advanced Rest Client displays the correct raw string:
{"id":7329270081369170538,"name":"arya.irani","tickets":[]}

but totally wrong data in the formatted Json page, which is the default display:
{
  id: 7329270081369171000
  name: "arya.irani"
  tickets: [0]
}

JSON numbers have arbitrary precision, so you can't represent a JSON number as 
a Javascript Number, or you get bugs like this. :-\

On what operating system, browser and browser version?
OS X 10.10.1
Chrome 64-bit 39.0.2171.95

Original issue reported on code.google.com by arya.ir...@gmail.com on 12 Jan 2015 at 5:30