Remove Content Remove Email Remove Framework Remove Java
article thumbnail

Mangling JSON numbers

TechEmpower

Theoretically we can send it from a Java server to a JavaScript client via JSON and both sides see exactly the same number. To convince ourselves that this number is safe, we examine various representations of this number in Java and JavaScript: // In Java long x = 1L. Any server-side web framework or HTTP server will do.