But JSON uses floats, not integers.

javascript uses floats as its own default numeric data type; but other languages do have integers, and might want to convert those integers into a JSON (string) representation

Does it really? I assumed it used strings.