Curious, how are you all dealing with Long (64bit) values?
We have 64bit primary keys and since javascript does not support 64bit ints, apparently have two options when sending JSON:
a. Send id as string. However in the future we'll have non-javascript clients consuming our REST API, and would have liked to have the correct data type being provided without needing to do type conversion.
b. send an extra string field (myId gets an extra myIdStr). Another practical solution. Pollutes the model with these extra properties unfortunately.
Not sure which approach to take yet.
In addition, does spray-json have any built in facilities to perform a or b above?
Thanks!