Closed demetris-manikas closed 1 month ago
What about using a library? This one looks alive and kicking https://github.com/yahoo/serialize-javascript
What about using a library? This one looks alive and kicking https://github.com/yahoo/serialize-javascript
Looks like this package doesn't support Buffer
and:
For some use cases you might also need to deserialize the string. This is explicitly not part of this module.
We might find some better suited package later.
Updated to use DBOSJsonDate as prefix
Sure.
are you sure about the data being a string instead of a number?
and if so you want the toUTCString()
to be used?
Sure. are you sure about the data being a string instead of a number? and if so you want the
toUTCString()
to be used?
Let's use toISOString()
as this is the default format used by JSON.
Applied all recommendations
This PR address #450
I chose the
getTime()
overtoUTCString()
since it consumes less space.