# Numbers in Table and JSON are different

**URL:** <https://discuss.elastic.co/t/numbers-in-table-and-json-are-different/218362>\
**Category:** Kibana\
**Created:** [February 7, 2020, 2:39pm UTC](https://discuss.elastic.co/t/numbers-in-table-and-json-are-different/218362 "2020-02-07T14:39:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldevlnull](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@ldevlnull](https://discuss.elastic.co/u/ldevlnull)\
**Post date:** [February 7, 2020, 2:39pm UTC](https://discuss.elastic.co/t/numbers-in-table-and-json-are-different/218362/1 "2020-02-07T14:39:54Z")

</div>

I noticed strange thing in logs: the number-value of marker in table-view differs from the corresponding value of field in JSON. What is this?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/f/5fbde23ffe3ad5847163d1e054dfd317f9466c58.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/afd4769cf76744668987f962bbb933055d8bff26.png)

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [February 7, 2020, 3:24pm UTC](https://discuss.elastic.co/t/numbers-in-table-and-json-are-different/218362/2 "2020-02-07T15:24:47Z")

</div>

The numbers are too big for the browser to handle them. Javascript uses a `double` (64 bit floating point) to represent numbers internally. If the actual numbers are too big to be represented accurately, they will loose precision when the JSON from the server is parsed.

In your specific case you should store the ids as strings instead of numbers, then you won't run into these problems. In general you should only store values as numbers if you want to do arithmetic operations which is normally not the case for ids.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 6, 2020, 3:24pm UTC](https://discuss.elastic.co/t/numbers-in-table-and-json-are-different/218362/3 "2020-03-06T15:24:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
