3 ms·
Just because an interface asks for a String parameter doesn't mean you can't send data through it that won't be caught at compile time. Neither does it mean th
by cs02rm0 12y ago
Just because an interface asks for a String parameter doesn't mean you can't send data through it that won't be caught at compile time.
Neither does it mean that you can't have an actual Java interface exposed as a JSON endpoint.
- ryanbrunner 12y agoBy definition, any problems sent to a JSON endpoint necessarily needs to be caught at runtime. You can build up all sorts of defences up to the point of the service boundary, but at some point, something is going to be accepting messages from unknown or little-known services expressed as JSON documents and not a statically-typed interface. That's a pretty fundamental difference in my mind.