Respond with 64bit Integer with Node.js

I'm creating a web application API that is required to respond to all HTTP POST requests with a JSON object.

The one stumbling block I have is that one of those JSON fields needs to contain a 64bit int, however, natively Node.js only support 64bit doubles and therefore does not include the level of precision required.

No calculations need to be done with this integer it is simply a request 'ID' that allows the service using the API to understand the response from Node.js. Unfortunately converting the value to a string would break the service accessing this API, therefore, the response needs to be a valid 64bit int.

Is there any way to respond with a 64bit int within the response JSON?

JavaScript follows ECMA-262 standards, by which all numbers (integers and floats) in JavaScript are 64-bit floating point numbers (IEEE_754). It can use upto 53 bit for integeral values. So natively you cannot handle 64 bit integer operations.

Use node-int64 package for 64bit integer support in node