Javascript to elasticsearch

I have a javascript AWS lambda which writes to my elastic search cluster. The problem i am facing is that all long values are truncated in javascript because of javascript parsing issues.
When I parse this little piece of JSON
{ "value" : 9223372036854775807 }
that's what I get
{ hello: 9223372036854776000 }
One solution is to store values as string however i want to maintain the type as long only.
What is the other way to handle this ?

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