Skip to content

Proper JSON Serialization of Long/BigInt/Int64 #8

Discussion options

You must be logged in to vote

Great callout @nickclarity. I believe your interpretation to be closest to the original design of the standards.

Basically, 64-bit integers are a problem for compatibility in some API consumers, mainly we are talking JavaScript as you suggest (I'm not sure I can think of another). BUT that is a pretty big concern for some APIs. So some of this depends on knowing the consumer of your API to make the best decision. However, building an API platform moving forward, it is fair to expect that you have to build for the lowest common parser, and I have updated the API standards to indicate that with some more specific details that apply here.

A quick overview:

  • Numbers should only be 32-bit inte…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@travisgosselin
Comment options

@nickclarity
Comment options

@eggilbert
Comment options

Answer selected by travisgosselin
Comment options

You must be logged in to vote
2 replies
@JamesStauffer
Comment options

@travisgosselin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
clarification Clarity on API Standards was needed (no changes). minor-change Small non-breaking modification to existing API Standard details.
5 participants